Hello, now i’m trying to make 2.5d platformer game and it’s based on the platformer tutorial.
I want the character to move along itween path just like this. Restrict a player's movement to a path for a 2.5D game that has curved paths - Questions & Answers - Unity Discussions
I accomplished to move the character along itween path but it hasn’t gravity.
how to add gravity to my character?
1 Answer
1If you mean Lerpz and you are using Move for moving the CharacterController, you will have to program the gravity yourself. My suggestion would be:
If you’re grounded set y to -gravity.
If you’re not decrease y by -gravity * Time.DeltaTime
both of course before moving and that again multiplied by Time.DeltaTime