Parent's transform changed when attaching child

Today something strange happens, when ever I attached a child object to a parent object, the parent transform position tries to snapped the child transform position.

To better illustrate, I am making some kind of guy with a sword by having a capsule as the guy and a smaller and longer capsule for the sword. What happens is that when I attached the sword as the child of the guy (parent) and move the sword a little bit off to the left of the parent. Originally the parent transform is at the center of the larger capsule, but somehow when the child (sword) is added, the parent transform decided to place itself midway between where it use to be and the child, or sometime the parent’s transform will be directly the same position as the child, but retain it rotation.

I am using Unity 5, is this a new behavior that I’m might have missed?

Most likely you see the transform gizmos from the center of the object. Change it to Pivot to see the real transform position of the parent.

43343-screen-shot-2015-03-26-at-55250-pm.png

if the parent and the child are not exactly in the same space the new position for the parent transform will be midway between the two objects.

:slight_smile: