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
2
Question by alexanderflink · Mar 19, 2013 at 07:26 AM · animationinputmecanimcharacter control

Benefits of root motion

Hi! I'm not sure if this is the right place to ask, but what are the benefits of using root motion of an animation to drive a character forward? Isn't it nicer to have full control through a script, so that you can change the speed etc at any time? Also, it seems that root motion is not applied when using a generic rig. Is this a known bug? I found another thread about that here: http://forum.unity3d.com/threads/160908-Generic-mecanim-root-motion-problem

I get the rest of Mecanim though. The whole state machine thing to switch between animations is really nice. Is it possible / viable to use Mecanim without using root motion? Can i control my characters movement the normal way, via script and just control the animation clips with Mecanim's state machine?

Thanks in advance. /Alex

Comment
Add comment · Show 4
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 alexanderflink · Mar 19, 2013 at 01:59 PM 0
Share

You don't need to control movement just because you use $$anonymous$$ecanim, right? Can it not also be used to control in place animations only?

avatar image whydoidoit · Mar 19, 2013 at 02:38 PM 1
Share

I'm pretty sure you can turn off root motion on an animation...

avatar image alexanderflink · Mar 19, 2013 at 03:53 PM 0
Share

Yes, I am aware of that, but that was not my question really... I was wondering why I SHOULD use root motion.

avatar image whydoidoit · Mar 19, 2013 at 04:00 PM 0
Share

Yep, that's why it wasn't an answer :) I was answering this part of your question:

"Can i control my characters movement the normal way, via script and just control the animation clips with $$anonymous$$ecanim's state machine?"

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by whydoidoit · Mar 19, 2013 at 04:05 PM

Root motion removes the possibility of foot sliding and allows you to do complex things that would be hard to control the "speed" for.

Imagine that you had blended a right twist animation and a cartwheel animation. It would be very hard to work out how to position that animation for a particular speed (to ensure the hands hit the ground and the body pivoted over them), but root motion just does that for you.

There are certainly times when it's easier to use normal speed control and adjust the animation weight and speed to match, it's horses for courses. Navigating with root motion is harder because you have to work out how to play the animations to get where you want to go...

Comment
Add comment · Show 2 · Share
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 whydoidoit · Mar 19, 2013 at 04:30 PM 1
Share

To clarify my beliefs on this:

  • User controlled characters - root motion is easy and natural - the user presses a button, you play an animation, the character moves

  • AI that is simulating player input - root motion is fine, for the above reasons

  • AI that is hard path following, or for example, is programmatically dodging in a crowd etc. Hard to predict the user input so the easier choice is to make the movement dictated by the system and then apply the animation that is appropriate. In the picture one of my games uses non-collision detection person on person avoidance which would be a nightmare for root motion.

alt text

screen shot 2013-03-19 at 16.38.42.png (418.6 kB)
avatar image alexanderflink · Mar 19, 2013 at 04:31 PM 0
Share

Oh, I see! Thank you for the reply. I think i'll stick to using a generic rig and script the motion myself then, since I will be using very simple animations, and I prefer to have total control over the character via script.

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

11 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

Related Questions

setting animation transition times to joystick float values 0 Answers

Animation and joystick Input 1 Answer

Handling input, movement, animation with scripts? 1 Answer

Mecanim Axis Randomize Input Problem 0 Answers

Clear mecanim trigger input? 1 Answer


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