I have a tank model, which consists of a tank body and a turret. I also have an empty gameobject that I am using to adjust the turrets center of rotation. The turret is child to the adjustment object, and the adjustment object and tank body are both children to the tank prefab. My problem is that when I move the turret, I expect the adjustment gameobject (its parent) to not move with it, but it does!
Answer by PeterDC
Oct 02, 2010 at 05:01 AM
If you have the scene's tool handle set to be at the center of the selection, it can seem like the empty GameObject moves. Try changing it to pivot and have your adjustment GameObject selected when your turret moves to see whether it really moves or not.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
No one has followed this question yet.
Models don't work as a gameObject in my script, i'm confused! Help!
How to Change Parenting while in game? C#
How to change the Anchor point of GameObject
How to access children transforms from parent GO script?
How to change a part of a model dynamically？