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 PlayingKarrde · Aug 31, 2013 at 09:52 PM · animationmecanimroot motion

Is it possible to mix Root Motion and controller animations?

I have a good locomotion system set up using code to control the transform and it feels really good, but as I'm creating a 3D fighting game I need to also have some moves (such as attacks and grapples) to be controlled by root motion.

Is there any way to mix the two so I can keep my locomotion system but have everything else controlled by root motion?

Comment
Add comment
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

1 Reply

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

Answer by Hyperion · Sep 01, 2013 at 04:26 AM

You're not being too specific, so I will also be a bit vague. In order to use root motion, your character needs to use Mecanim, and in order to access Mecanim from code (but not necessarily, so if you don't want to use Mecanim, skip to the OR part), you need to use a state machine. Therefore, configure your character for Mecanim either way (that is if it is a human, is it?), add an animation controller component (state machine) and check the 'Use Root Motion' box.

OR if you don't want to use Mecanim, you will want to confirm your animations as Legacy animations and use a state machine anyway (because statemachines are independent of Mecanim). If you have more questions, feel free to ask.

-Hyperion

Comment
Add comment · Show 6 · 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 PlayingKarrde · Sep 01, 2013 at 05:58 AM 0
Share

Sorry I should have been more specific.

Yes I'm using $$anonymous$$ecanim for my characters. Here's where the issue exists though:

I have root animation checked and all my animations are then acting as root motion, so my locomotion system is then applying the motion from the animation to my movement. I don't want this. However, I need to use root animation for the actual moves because I don't want to have to animated the actual position of the characters in code at this point (like for instance for a hit reaction that sends the player backwards).

So what I'd ideally like is to not use root animation for my locomotion animations but use it for everything else.

Does this make sense?

I plan on using $$anonymous$$ecanim regardless of if it is root animation or otherwise.

avatar image Hyperion · Sep 01, 2013 at 06:41 AM 0
Share

Try using Animator.applyRoot$$anonymous$$otion=false when you're activating the locomotion, and vice versa when you're using a non-locomotion animation.

avatar image PlayingKarrde · Sep 01, 2013 at 06:43 AM 0
Share

Excellent! Exactly the sort of thing I was looking for!

I'll give it a shot, thanks.

avatar image Hyperion · Sep 01, 2013 at 06:50 AM 0
Share

You're welcome. Also, if it works out, please accept my answer.

avatar image PlayingKarrde · Sep 01, 2013 at 07:08 AM 0
Share

Yep that's exactly it. Thanks again.

Show more comments

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

17 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

Related Questions

why Do my animations behave differently ? 0 Answers

Problem in Root Motion Animation . 0 Answers

Mecanim: Bake Only Z Root Motion Into Pose 0 Answers

How to respect colliders in Animations with Root Motion ? 1 Answer

Animations blending in weird way (maybe something to do with root motion?) 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