Question by
Ranger-Ori · Feb 23 at 05:36 AM ·
transformparent-childparent and child
Weird Child-Parent behavior
Hi,
I have a GameObject of a gun.
The hierarchy is this:
Parent (Pivot for rotation)
Child - Mesh of object
Child - Location of barrel (to fire a bullet)
Whenever I change the location of the barrel, the parent transform changes as well.
I've linked a small video.
Why did the parent move as well? I want it to remain in the same spot.
ezgifcom-gif-maker-2.gif
(445.2 kB)
Comment
Your answer
Follow this Question
Related Questions
How can the pivot point of a object be changed during Runtime? 0 Answers
Why my parent follows its child game object? 0 Answers
Attach gameobject to my player on touch and stay in a hold slot made for it 1 Answer
Problem with parent gameObject not where it should be after adding childs 0 Answers
Find a rigidbody's root parent then find its child by name 1 Answer