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.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
Have Camera Render First Person Arms But Not Body.
How to Change Parenting while in game? C#
Make model fade out. Transparency help.
Best way to tear apart a piece of paper?
4.6 Anchor a gameObject to a canvas