- Home /
Standard Asset AIThirdPersonCharacter always on falling animation
The Ethan AIThirdPersonCharacter was working on another computer and worked on this one before, but now in play mode, it's always on it's falling animation, even when it's on the ground, in which case it kind of hovers. I added and baked a NavMesh Agent, Nav static to the ground and a custom audio script. When I remove all the Nav components, it doesn't happen, but I need the character to move. here is the script that controls the animation and movement:
What is it doing and why? Need an answer FAST! -UPDATE- FIXED IT!!!!!!!!!!!!!!!!!!!!!!!!!! the Nav agent was too tall and was embedded in the ground.
Try using a capsule ins$$anonymous$$d of the Ethan prefab, see if that works
I wouldn't be able to tell, as the problem is the Nav interfering with the animator.
I'm not familiar with this asset (I haven't ever used it). Things to do:
Open the animator a check the variable that is being used to play the falling animation vs the idle animation.
Open the AIThirdPersonCharacter code and see where that variable is being set $$anonymous$$y guess is that it is set when the collider detects its on the floor or something similar.
Once you have that information post it here so we can help you.
It's not that simple, I can't find the correct animations. There are no "Idle" or "Falling" animations, there's Grounded and Airborne states which are made up of hundreds of animations.
That's what your looking for. It can be an animation or a state. You looking for the transitions. It sounds like you should review mecanim.
This is for unity 4.0 but should still be relevant: https://www.youtube.com/watch?v=Xx21y9eJq1U
Your answer
Follow this Question
Related Questions
Determine if NavMeshAgent is turning 0 Answers
AI Animation Relative to its Forward Direction 1 Answer
Nav Mesh Agent 0 Answers
the animation walk but he still in the same place and rotate left and right on this white circle 0 Answers
Detect Falling 3 Answers