Hi, this might seem a simple question, but I’m trying to figure a way to stop First Person Controller animations when it is not touching the terrain or anything (basically just in the air.) How could I do this? (hoping for a small piece of code, but anything will do for now)
Any help is appreciated.
If you are using a character controller then you could simply use the “isGrounded” statement to force it to either play a falling animation or stop all anims altogether.
function Update ()
var controller : CharacterController = GetComponent(CharacterController);
// All the stuff your character does when it's on the ground.