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 Nytro99 · Feb 13, 2015 at 06:55 AM · animationpositionmecanim

Mecanim animation make the model slide slowly!

I have the Character Controller with inside a "graphic" model object (the character). The character have two simple "idle" and "run" animation with an animation controller.

The problem is that also if i'm always in "idle" animation (in the character object) the X and Z position change slowly making the model go out the parent!

In 3D Studio Max the origin of the model is always the same from start to the end of animation! So why is the character sliding and going out from the parent? If I disable all the animations the object don't slide...!

Why?

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
0
Best Answer

Answer by Baste · Feb 13, 2015 at 09:37 AM

You probably have root motion enabled in your animator. Select your animator object, and uncheck "apply root motion".

Root motion is simply the animation on the root of the object. If you turn that off, your animator won't be allowed to move the base object, which should fix the problem.

Comment
Add comment · Show 3 · 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 Nytro99 · Feb 13, 2015 at 11:46 AM 0
Share

Thank you, this was the problem!

avatar image meat5000 ♦ · Feb 13, 2015 at 12:06 PM 0
Share

Alternatively, try the baking options in the Animation import.

avatar image Max_Bol · Sep 20, 2020 at 04:23 PM 0
Share

There's one small option (in Unity 2020 and so on) that can produce this kind of undesired effect: Anim. Compression

In the Animation Tab of the file that contains the animations, setting the Anim. Compression to either Keyframe Reduction or Optimal can result in deviations of the root on any axis. If this is happening, the 2 possibilities are to either set Anim. Compression to Off or, in either Keyframe Reduction or Optimal, set the Position Error to a number small enough to remove the problem.

In my case, the sweet sport for the error to not occur is between 0.1 and 0.05 for the Position Error.

This problem can occur regardless of the Root Transform Position Y and XZ checkboxes.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is it possible to use a random spawn position as a keyframe in an animation? 0 Answers

How do I make mecanim animations respect bone location/position keyframes? 0 Answers

Keep position/transform of object after animation 0 Answers

Misplaced Character with Mecanim 1 Answer

position change due to animation 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