I need to make a procedural jump in a board game in Unity C# (I conditionally have many points where the player has to jump from one to the other with different distances) which is called by the script. I cannot do animation because I need to calculate distance.
I've tried to use Vector3.Slerp which is much modified but it does not work like I imagined at all.

(There I've made another Vector3 because I need another axis in the jump)
Ideas ran out.
Please tell me how can I fix a problem in the script above or how I can do procedural jump else. Thank you so much.
Your
indexis always ever only to be0. And the code you do inLateUpdateis fully redundant - simply assign the new position directly totransform.position.I think what you are trying to achieve is to move your object smooth through the various positions provided by
standone by one.So what you need is
and do this until you reach the very last one.
You could e.g. do this in a Coroutine like