Reputation: 29
I am trying to play the animation but whenever i add rigidbody, player starts to float in the air at the constant value (which is 3.5 Y). No script is attachted atm.
I tried to remove rigidbody which solved the problem, but i need it so deleting rb is not an option. Gravity values are normal and the other animations are from mixamo (i didn't do the animations).
Upvotes: 0
Views: 1958
Reputation: 29
Okay i just solved the problem. Problem was neither rigidbody nor animation. The collider of mesh (ground) has option checked "is Convex". I turned it off, problem solved, player is not floating anymore.
Upvotes: 0
Reputation: 448
Based on the information provided here is what I'm thinking:
The root cause of this is that your character model when effected by gravity is being pushed to the ground and foot IK is causing the legs to end up looking like your screenshot above.
Some common approaches to this problem:
With this setup animations can be done on the model (+foot IK) without gravity causing issues.
Upvotes: 2