- Home /
Creating animations for Unity
Greetings!
I've created some BVH files using Poser 6 and converted them to FBX files in Blender 2.65. Then, I imported them into Unity 4 to use in Mecanim. I tried applying the animation to the robot model from the Mecanim tutorial. The animation itself works as expected. But, for some reason, I'm not getting any forward movement. I made sure that I checked 'Apply root motion' on my animator. So, it's not that.
I've included the files form my assets folder. They include my BVH file that I exported from Poser and my FBX file that I created in Blender. If someone could tell me where i went wrong, i would be very thankful.
Thanks in advance,
Mike
Answer by GrnDyRx · Jan 22, 2013 at 09:43 PM
You need a script to move it forward, like the unity asset third person controller, or just the walking script in that, but I would recommend that whole prefab and edit it, because it has a animation script there already.
thank you for your response. but, i think its more complicated than that. i also tried adding my animation to the $$anonymous$$ecanim Unity 4 tutorial. When i completed the tutorial, the robot was moving around fine. then, i tried replacing the animation that comes with the tutorial with $$anonymous$$e. the robot stopped walking forward and began walking in place. also, when i viewed the tutorials animation in the preview window, it showed it walking across the ground. when i displayed $$anonymous$$e in the preview window, it showed it walking in place. Also, checking 'Apply root motion' on the animator component dictates whether it pulls this info from the animation. with it checked, the tute's animation caused the robot to have forward motion. when i unchecked it, forward motion stopped. so, it looks like $$anonymous$$ecanim definitely derives forward movement from the animation file.
Answer by 3dGeek · Jan 23, 2013 at 06:53 AM
Thank you for the answer. I think there is more to it than that though. I followed the tutorial for Mecanim Unity 4. I originally used the animations and scripts they supplied. When i uncheck 'Apply root motion' on my animator, the models stops moving forward and walks in place. I check it back and it moves again. Then, i replace the animation provided with the tutorial with my animation from Poser 6/Blender and the model started walking in place again. I also see a difference in the animation preview window. The animation provided with the tutorial shows she model moving forward. When i put my animation in the preview window, it shows it walking in place. From that, it seems that Mecanim in Unity 4 is getting motion information from the animation.
Thanks again,
Mike