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 Bafftub · Nov 30, 2012 at 08:57 AM · animationobjectsmultipleduplicate

Using the same animation on duplicate objects.

I'm animating ducks swimming in a pond. I successfully animated the duck's circle of movement. I have duplicates of the same duck and I want to attach the single animation to all the ducks and move them in different areas of the pond.

When I run the animation they all clump to the spot I animated them instead of running the animation where I placed them. I've tried adding an empty game object, zeroed out the translation and parented the duck objects to the empty game object but they still clump to one spot.

Is there anything I can do to fix this? Or do I have to make unique animations for each duck?

Comment
Add comment · Show 1
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 rara · Dec 31, 2013 at 02:00 AM 0
Share

did you solve your problem?

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by trs9556 · Dec 31, 2013 at 02:48 AM

I might struggle with explaining this but I think I know what is happening.

So when you created the animation you probably animated the top parent of your gameobject. Thus "hard coding" what the x y and z chordates of where the animation will take place. So for example if your ANIMATION starts at 0,0,0 and ends on 5,5,5 it doesn't matter if your gameobject starts at 8,8,8 as soon as the animation begins it will jump to 0,0,0.

This holds true for any gameobject using this animation.

The way I get around this is I create an empty gameobject and parent it to whatever I want to animate. Therefore you are animating the x y and z of the child so it's chordates will revolve around whatever the parent is.

You can then stick your parent object anywhere you want and the child will animate in relation to the parent's location.

Comment
Add comment · Show 2 · 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 rara · Dec 31, 2013 at 02:52 AM 0
Share

you are right and that is what I did. more over, I created a prefab of the empty game object that includes my animated game object and all animation is working cool as wanted. thanks!

avatar image dreasgrech · Aug 10, 2014 at 02:30 PM 0
Share
  • This works beautifully.

avatar image
0

Answer by ash22 · Jun 07, 2016 at 06:30 AM

Right on man - solved my issues - at least with position animations - 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

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

13 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

Related Questions

Duplicate Animator Controller problem - models still using the previous controller 1 Answer

Trying to understand fingerId's - android c# 0 Answers

multiplying door problem!! 2 Answers

Rotating Multiple Objects at once (OnCollision) 1 Answer

Animation @ Naming System not working 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