Replies: 2 comments
-
Hi! Are you calling the Execute method manually? If so, when you pass Time.deltaTime as parameter, the current implementation should work correctly. |
Beta Was this translation helpful? Give feedback.
-
@fgsebares: deltaTime is the time for the current single frame. travelTime is the time to traverse the whole spline.
If the time that the mesh goes along the spline is too fast, I'd suggest reducing the Travel Time even more. Making it a large value should slow it down a little. Change the Travel Time to 30, or something like that. NOTE: You'll need a LARGE Travel Time to make the mesh travel slowly. Are you calling Execute() at some other time and passing in something other than Time.deltaTime? Not sure what you're doing, but as @yasirkula suggests, it's currently working as expected with +=. If it's not working in your case, there must be something else amiss. Best of luck! |
Beta Was this translation helpful? Give feedback.
-
Hello!
First of all, thank you a lot for sharing this amazing tool, I was having a headache trying to make Beziers to work, and this saved me hours or days of pain. So really thankful for it :)
I wanted to share what I think might be a bug. I'm using BezierWalkerWithTime, but no matter which time I inputed, it always went very fast, like 2 seconds or less. I dived into the code, and I saw this:
m_normalizedT += deltaTime / travelTime;
I think the intended operation was a direct assignment, not an addition.
m_normalizedT = deltaTime / travelTime;
This way, it appears to work as intended.
I hope this helps!
Beta Was this translation helpful? Give feedback.
All reactions