- Home /
Rigidbody gravity X Generic Mecanim Additive Move-Forward Animation
In the example package provided by Unity, I have no problem with setting up the humanoid animation and make it work with gravity. However, the same setting seems to be not applicable to generic animation mode. When I fiddle with the working example, and switch it from humanoid to generic, gravity ceased to work anymore. Then I fiddle a little more, I always get 2 results:
Gravity is not working, if I placed the character on mid-air, it will stay there, even when it is running around.
Gravity is working, but the move-forward animation is not working properly, it is animating, but the increment in the forward axis is somehow cancelled or limited by the rigidbody.
I cannot achieve the gravity is working and the move-forward is working as well using generic animation, did I missed anything at all? Have anyone faced this problem?
To test this out, in Blender, I create a cube with a simple armature with a simple move forward animation. I setup the animator with the move forward animation as the default state. It is working alright until I try to set it up like the one in the Mecanim example, I always get back to the 2 results I have.
Animation Import setting
Setup for the cube
I have done some testing using the mecanim tutorial example provided by Unity.
It seems that the rigidbody will interfere with the forward motion of the mecanim when I set it as Generic mecanim. When I switch back to Humanoid mecanim, everything goes back to normal, like what is shown in the mecanim tutorial video.
I revisited this question and uploaded a unity package containing the scene I ran my tests with.
http://answers.unity3d.com/questions/475912/mecanim-generic-x-gravity-x-move-forward.html
Your answer
Follow this Question
Related Questions
Mecanim animation importing 2 Answers
Character Animation Import Problem 0 Answers
3ds max animation wont import. cant adjust keyframes? 0 Answers
Can't find Mecanim? 2 Answers