Falling animations to a 3d mixamo character


I’m trying to add a falling animation to a character i got from the mixamo store. I need the animation to work so that if i press the spacebar, it will play an animation for the start of the jump, then for the duration of time that my character is in the air,it will loop a falling animation. Then it will play the landing animation when I land. The thing is that i don’t know where to begin on sorting out the falling animation. Can anyone help me with this? If it’s any help, I’m using the FPS movement script in the standard asset pack. Thanks! :slight_smile:

You have to use raycast Downword for detecting ground so that you can play animation if the ray is touching the ground.
Fiind Ray downRay = new Ray(transform.position, -Vector3.Down);
so. if you will get the ground touch then you can easily play your desire animation with it.

Generic non-coder answer -

Have a transition to ‘is falling’ directly after the ‘start jump’. Set the ‘is falling’ to loop with exit time. This will allow the ‘is falling’ to be interrupted, and makes it so ‘is falling’ is a variable rather than a set duration/distance fall. The landing can fire from a trigger of the collider touching the ground or ray casting to detect the ground at which time the character will transition out of ‘is falling’ into ‘landing’ animation.