#Bezier Curve Without Flinging

1 messages · Page 1 of 1 (latest)

dawn wave
#

So I've got myself a fun little Bezier Curve system to make paths smoother, but there's one problem, and that problem is that the object will fling really fast to the other node without staying at a constant speed. How can I make it not do that?

elfin storm
#

Unless I understood that wrong?

dawn wave
#

I just want to be able to have the object follow the curve at a constant speed. Like for instance, the object will follow the curve faster if nodes 1, 2 and 3 are further away from each other. the opposite will happen when I bring them closer

#

I want the object to always follow the curve at a constant speed regardless of the distance between the 3 nodes

elfin storm
#

Okay so

#

Try scaling the lerp's position depending on distance

#

So if they are further away make it scale sloeer

#

Whereas of they are closer make it scale faster

#

You'd have to try it out to find a good scale but I'm pretty sure that would work

#

You could also try and make it proportional with distance but I'm not sure how as I'm not currently able to get on, I feel as if that would be the best option

dawn wave
#

Oak 👍

gilded scarab
#

That’s how I did mine, it was constant for me

elfin storm
gilded scarab
#

I found a formula online and just put it into rec, I’m not bezier himself 😭

elfin storm
#

I'm used to my physics major friend who does his own math in rr 😭

gilded scarab
#

A lot of physics comes from learned formulas tho

elfin storm
#

Yeah ofcourse

gilded scarab
#

Like I learned the bezier formula like a year ago in my physics class so I didn’t have to look it up again I just had it memorized, but I didn’t come up with it on my own

#

Or maybe it was a math class I don’t remember exactly

elfin storm
#

I learned basically everything math and physics from the person I mentioned above, I then relearnt them in class (free grades lmao)

gilded scarab