Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
This question was closed Feb 24, 2018 at 05:11 AM by meat5000 for the following reason:

The question is answered, right answer was accepted; also Outdated.

avatar image
7
Question by FLASHDENMARK · Mar 08, 2011 at 06:29 PM · animationposition

Animation position problem

Hello all :)

I have made a simple animation using Unitys animation window. The problem is when i want to play the animation from a different position then where it was created it automaticly "jump" to the position where it was created.

E.g. if I made a animation at the position: X = 0, Y = 0 and z = 0, then move the object with the animation to a different position then 0,0,0 it automaticly snaps to the position where the animation orginally was created.

Is there a way to prevent that?

Thank you:)

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

5 Replies

  • Sort: 
avatar image
17
Best Answer

Answer by Bunny83 · Mar 08, 2011 at 07:39 PM

Animation curves are applied to localPosition / localRotation. Don't animate the root object. The animation should be applied to child objects only. Unity doesn't directly support motion delta in animations that's why you have to animate in place.

If you animated only childobjects, make sure that the parent object don't have animation curves. You can simply delete them. Otherwise you have toput your object together with the animation into an empty GameObject.

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 FLASHDENMARK · Mar 08, 2011 at 09:38 PM 0
Share

Huh, wierd it worked... that is good i guess, but if something can be worked around this easily, why not just make it a feature?

But anyway thank you it worked :)

avatar image Denisthegreat · Feb 19, 2018 at 05:04 PM 0
Share

thanks a bunch this worked out for me too

avatar image TheRedGuy90 · Feb 15, 2021 at 08:16 AM 0
Share

I came across this, and my child object is the only object being animated, with no curves on my parent object. I coded the child object to play the animation, and it still snaps back. If anybody has advice on where to go from here, please feel free to message me privately. Thanks in advance.

avatar image
6

Answer by Rocky46 · May 20, 2013 at 12:43 PM

I had this very same problem (moving to 0,0,0 worldspace) uncheck "apply root motion" on the animator.

My animator component is attached my model, my model is a child object of first person controller. hope this helps :)

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 plokkum · Jun 10, 2013 at 10:53 PM 0
Share

This solved it for me, thanks!

avatar image tatelax · Feb 27, 2015 at 11:58 PM 0
Share

Solved my issue. Thanks!

avatar image JJJDon · Dec 02, 2018 at 11:32 PM 0
Share

Really helps me. apply root motion makes strange behaviour for me

avatar image
3

Answer by kenseiden · Jun 09, 2017 at 08:58 PM

this was a real pain for me but after some deep digging I discovered you need to check Apply Root Motion field and Generate Root Motion by going to Animation > 2x Click on your animation.

Hope that helps

Comment
Add comment · Show 1 · 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 SteveP1999 · Jul 02, 2021 at 01:59 PM 0
Share

Dear Kenseiden, what do you mean by click on your animation? :)

avatar image
0

Answer by LongGood · Mar 26, 2014 at 07:56 AM

I do need joint's globalposition for comparison. My animation is applied to 3D mode, each component have the hierarchy. if I follow the suggestion move all the component as child to a empty gameobject, then the animation will be fail.

any suggestion?many thanks

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

Answer by Rockkevin · Jan 25, 2017 at 07:52 AM

Excellent answer. This problem has been bugging me for a while also. Thank you for your contribution.

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

Follow this Question

Answers Answers and Comments

12 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

Related Questions

How to make animation and change position at the same time ? ( Example , like MapleStory /Terraria Slime hoping from one place to another ) 0 Answers

Why animation events do not change sprite position? 1 Answer

Animation Play Problem (Att: Video Example) 1 Answer

Only animate rotation not position 1 Answer

How to Set Animation Position on Slope (animation) help please 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