12-28-2021, 02:48 PM
(This post was last modified: 12-28-2021, 02:50 PM by linkinballzpokemon.)
Hi,
I want to know how I can change the speed of on object following a spline path.
For example, My character is driving on a mountain, so when the player is moving uphill, I want to go slower. And when the player is moving downward, I want to move faster, and this happens multiple times throughout the level.
I'm not using a controller, and due to other movement code I can't use one for the current project.
So is there a way I can use easing/animation curves or something to change speeds between control points?
let me know, thanks
PS: I'm using transform.position = RopeSpline.Interpolate(tf); for movement. But Open to using any other methods
I want to know how I can change the speed of on object following a spline path.
For example, My character is driving on a mountain, so when the player is moving uphill, I want to go slower. And when the player is moving downward, I want to move faster, and this happens multiple times throughout the level.
I'm not using a controller, and due to other movement code I can't use one for the current project.
So is there a way I can use easing/animation curves or something to change speeds between control points?
let me know, thanks
PS: I'm using transform.position = RopeSpline.Interpolate(tf); for movement. But Open to using any other methods