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 WorldLink · Aug 19, 2013 at 07:13 AM · animatorobjectblender

Character gets reset to center

Hello. I'm currently dealing with a totally bizarre problem. My project (thus far) consists of a flat plane, inhabited by a 3rd person player character and a virtually identical NPC character with simple AI. The problem is that when I press play, the NPC is mysteriously transported to the centre of the scene, and it's somehow being triggered by his animator (if I remove the animator, nothing strange happens). The only difference between the player's and the NPC's animators is the way by which the speed parameter is calculated (input for the player, motion for the NPC), but I don't see how that would change anything. They are both based on the same character that I made in Blender and imported to Unity. The most baffling part is that it was working fine until I modified the walking animation and re-imported the character as an update. Also, changing the culling mode doesn't seem to have any effect. Does anyone have a clue what's happening here?

Comment
Add comment · Show 3
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 WorldLink · Aug 19, 2013 at 10:23 PM 0
Share

I think I maybe have answered my own question, albeit it in a roundabout way that I don't even understand myself. I found that if I give the NPC character controller script, the problem goes away, even though I'm not using the script. I guess there's something in there that fixes the problem. Yay.

avatar image Linus · Aug 19, 2013 at 11:02 PM 0
Share

You should then answer your own question, and click the "Accept answer" button,. So that the question is closed. Its appreciated if you write in detail what solved the problem. To help other with similar problems in the future

avatar image Loius · Aug 19, 2013 at 11:41 PM 0
Share

It sounds like you may have a unique issue, but I'll insert my copypasta here anyway in case it helps:

Animations contain positional information. Animated objects must be childed to a control object which is moved ins$$anonymous$$d, or their position must be set (not changed, but actually set) in LateUpdate.

1 Reply

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

Answer by WorldLink · Aug 20, 2013 at 12:04 AM

Ok, it seems that I didn't explicitly state the coordinates of the animation, which is taken care of in the pre-built 3rd person character controller, so Unity automatically assumed that I wanted it to take place at origin. I could have also solved this by parenting the animations to a control object myself (for those of you who are custom building everything).

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

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

Optimize Objects 1 Answer

object changes position and rotation to default on play 0 Answers

Object stuck when I add new state in animator 0 Answers

Keeping Quads = 2 materials? 0 Answers

Imported Blender Animations not Working 2 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