CMDCam icon indicating copy to clipboard operation
CMDCam copied to clipboard

[1.20.1 Forge] Paths are skewed when using cam follow and pressing P to add points in follow breaks.

Open UltraToon opened this issue 9 months ago • 5 comments

When using /cam follow entity @e[type=zombie,limit=1,sort=nearest] (my instance), then adding points, two things can happen:

  1. adding points through cam add (first being 10 4 -10 and second being 15 5 -20)

the scene still works when played also (video of it not sent, no issue)

Image

  1. adding points through pressing p This looks normal, but when played Image

This happens: https://0x0.st/8YaC.mp4

Notes: Cam target is targeting the zombie in the glass box Cam mode outside is on circular interpolation. it seems that the second point factor, or first is multiplied on the X and Z axis, Y is neutral

UltraToon avatar Jun 01 '25 22:06 UltraToon

Image No idea whats going on here

UltraToon avatar Jun 01 '25 22:06 UltraToon

I noticed that creative core gives the imports for all interpolation functions except circularcaminterpolation.java, its probably some positioning miscalculation. Im new to modding so I might be false

UltraToon avatar Jun 01 '25 22:06 UltraToon

Oh right. Have not thought about using /cam follow for a circular path. Normally it should be /cam target. Not sure if I can make it work. The circular interpolation is quite a tricky one.

CreativeMD avatar Jun 03 '25 12:06 CreativeMD

Yeah, I'm mainly using the mod with kubejs to create relative cutscenes by triggers around the world, I used to get entity coordinates then position absolute coordinates around it but the follow is much more fluid 😀 . I also struggle to understand the circular interpolation but I can try to diagnose the issue within the next few evenings or just use other interpolation. Also, saw in the server, wish you the best on the marriage, sorry if I seem a bit pushy.

UltraToon avatar Jun 03 '25 16:06 UltraToon

Alright, sorry for responding that late. There are a few issues with circular interpolation in regards to follow.

Normally, the first position marks the radius and position of the circle. It will spin around the look target. If the target moves the radius might get bigger or smaller. The first position does not change only the circle. Then you can define more positions, they will define the height on a certain angle of the circle.

All of this does not work in follow mode anymore. I'm not sure how to solve this. I thought about removing the ciruclar interpolation entirely and rewrite it. Basically define a radius via a command, but I'm not sure how to control the height at a given angle. I could not figure out a good solution in my head. That is why I have no done anything yet.

CreativeMD avatar Jun 12 '25 08:06 CreativeMD