Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by adrianks47 · May 14, 2014 at 07:35 AM · animationmecanimroot motionimageslegacy

How to fix this Mechanim root motion problem?

I'm using mechanim to animate my character but i don't want to use the Aplly Root Motion function. The problem is that with the Aplly Root Motion set to false, the animation doesn't looks like it should look. Here's some GIFS to illustrate:

This is how it looks like in blender ( how i wanted it to look like inside of unity )

alt text

This is how it looks like inside of unity using the Legacy System (wich was great by the way).

alt text

This is how it looks like using Mechanim with Root Motion being Apllied ( it looks OK but, with time, the root bone gets out of alignment with it's parent object, so i can't leave it like that)

alt text

And this is how it looks like without Root Motion

alt text

I also can't leave it like that. Do you notice how the head rotates with the body? This is not how it should look like. Can somebody help fix this? I can't use legacy system for this project.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlkisFortuneFish · May 14, 2014 at 08:22 AM 0
Share

For the behaviour you are seeing in the last picture, I presume you are using humanoid. That makes sense for a model like this and if you want I$$anonymous$$ etc. but if it gets to it, a quick solution would be to use generic mode.

In humanoid mode, the animation of your rig is retargetted to Unity's simplified humanoid rig and this process can be greatly affected by various factors, including the avatar setup and your original rig setup. Ensure that you create the avatar using a clip with your model in the standard T-pose and that the muscle settings actually make sense and that should give you a good start, at least.

In humanoid mode, the actual root from your rig is ignored and a new one is calculated, based on the average joint positions, if I remember correctly. Play with the clips root settings in the model importer, such as the XZ position, to see if it helps.

As I said, if all else fails, generic should work fine.

avatar image moxiewhimsy · Apr 05, 2015 at 06:19 AM 0
Share

By staring at your animations, I've noticed that this issue isn't the head. With root motion, your character animation's whole body is rotating slightly in a natural swinging manner. Since not applying root motion doesn't apply this rotation, the head isn't stabilized.

avatar image moxiewhimsy · Apr 05, 2015 at 06:22 AM 0
Share

A couple ways to fix this are to: Write a root motion handling method, and only apply rotation. Apply root motion, but constrain motion via Rigidbody (You can still alter position manually if you don't need to use Physics.)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Using root motion scripting for specific animations 1 Answer

Can i use mecanim animator while using legacy? 1 Answer

Mecanim: 2D Blend Trees, Unable to Compute Positions. 0 Answers

Mecanim curve for move speed 0 Answers

AnimationClip must be marked as Legacy 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges