Tryiing to find a tut for moving a Character along a Spline without manual input?
I also want too preserve the Character movement speed.
Tryiing to find a tut for moving a Character along a Spline without manual input?
I also want too preserve the Character movement speed.
Not a tut. But that’s the gist:
Old but should still work fine.
without manual input?
This is using input axis - but you can think of it as Tick which would require no further input; or run a timeline as soon as the players hops on the spline.
When it comes to velocities, you know the length / duration of the spline and the character’s movement component is always happy to spit out current velocity. Normally you apply a vector to move, you can project a vector onto a vector to find out how fast you’d be moving in the spline’s direction (check which segment you’re close to). Keep adding that value to the progress along the spline every frame.