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
1
Question by Eddy Johnson · Dec 27, 2010 at 11:03 PM · animationpositionobjectchangebone

Animated object changes position when animation is played.

Hi, so I am learning object animation an run in to a problem: my animated object is changing its coordinates on single axes, when animation is played. I created a simple object in 3d Max, animated it using bones + one HI solver and imported it in my unity scene. I did not export to .fbx, but just dropped the .max file in assets folder. I named the split animations, and they work fine, except right before the animation is played for the first time, object changes position on y axes and stays there. Is there something I missed?

Just noticed that the object that I am trying to animate is put in the wrong coordinates when I drag in to the scene in the first place. For example if I drag it in the scene and in the transform component type in coordinates 0,0,0 it is not positioned an 0,0,0 but a bit further down the y axes, but once the animation is played, it jumps to 0,0,0 and plays there as it should. I also wrote a simple script (transform.position = Vector3(0, 0, 0);) in the update function and put that on the object, but it did not move the object in the corect position until animation was played...

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 Eddy Johnson · Dec 29, 2010 at 12:27 AM

So after lot of trying I found out that it was the root bone of my bone structure that was causing the trouble. When I collapsed the trajectories of every bone except the root bone, the object imported at the correct position. So a "cheap" workaround for the problem is just adding another bone and link the root bone to it. It seems to work, but somehow I still have the feeling that I screwed up somewhere...

Comment
Add comment · Show 4 · 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 Paulius-Liekis · Dec 29, 2010 at 08:10 AM 0
Share

No, parenting your root to extra joint (either in your modeling tool or even better in Unity) is the correct solution.

avatar image Shovon Ovro · Nov 13, 2012 at 07:28 AM 0
Share

how to manage another extra joint for parenting in unity?

avatar image Shovon Ovro · Nov 13, 2012 at 07:31 AM 0
Share

i mean how to parent my hip bone(root joint) to another extra bone inside unity?

avatar image cargo1983 · Oct 27, 2014 at 01:05 AM 0
Share

$$anonymous$$y character was offsetting on play and I just created an empty game object in my character and dragged the root bone "hips" into it. Seemed to work.

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

1 Person is following this question.

avatar image

Related Questions

How to bind two gameobjects together? 2 Answers

Why Does My Object Change Position During Update? 0 Answers

Change player's y-position for a specific animation 1 Answer

changing pivot's placement 2 Answers

Switch between animations but keeping frame number? 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