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 RumplyThrower · Jun 20, 2013 at 11:58 PM · animationchildparentingempty game object

Need help with parenting!

I'm trying to create a simple stickman and animate him, so i did what i used to do before when i want a object to rotate around a point(in this case a leg). I would create an empty game object, place it where i want the rotation point to be, add the leg as it's child and then just rotate, but now when i add the leg as a child it just sets the center of the entire object (empty game object + leg) somewhere in the middle. It used to work fine but all of a sudden it doesn't. Please help, cheers.

Comment
Add comment · Show 4
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 xandermacleod · Jun 21, 2013 at 12:25 AM 0
Share

your method should work fine. remember that unity often changes the gizmo location to somewhere unexpected but as long as you punch n the rotate values on that emptyGameobject in the inspector it should work. i.e. don't let the gizmos location fool you

avatar image s_guy · Jun 21, 2013 at 02:18 AM 0
Share

By what means are you rotating the object (animation, $$anonymous$$echanim, script, joint, etc.)? What does your set-up look like?

Extending what Xander said, adding certain components to an object can affect the scene gizmo's position. The scene appears to draw the gizmo at the centroid of the game object and all such components. For example, if you add a LineRenderer component, the vertices of the LineRenderer seem to affect the scene gizmo position.

However, transform children do not seem to affect the parent's gizmo placement.

You will need to pay special attention to the transform of the parent and of the child. Child is relative to the parent, e.g. a 0,0,0 child will be exactly where the parent is. Often there are surprising results when using positional information and then changing the heirarchy.

Can you be more explicit about exactly what is happening versus what you want to have happen?

avatar image RumplyThrower · Jun 21, 2013 at 02:23 PM 0
Share

"Extending what Xander said, adding certain components to an object can affect the scene gizmo's position" that is happening, and because of that i cannot animate it properly, since it rotates around the gizmo and what i want is to keep the gizmo of the parent where it was originally, not at the centroid. It used to be like that but it changed for some reason. If needed i can post a screeenshot

avatar image RumplyThrower · Jun 21, 2013 at 02:37 PM 0
Share

Ah never$$anonymous$$d, i figured it out :D There was a button that said "Center" and i switched it to "Pivot" and now i'm cool :) thanks for the help anyway :)

0 Replies

· Add your reply
  • Sort: 

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

15 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

Related Questions

[Solved] Animation destroying along with the GameObject its a child of 1 Answer

Can I add a parent to all the children in an animation tree structure ? 0 Answers

Animation precision? 0 Answers

Can I make animations snap to a frame? 1 Answer

My child move with the parent but can't move on it when the parent is moving 3 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