I have two spheres, children of an empty parent object. I am moving one object and want the other to follow the movement in reverse.
This is working based on world coordinate - how to I make it work based on the parent objects coordinates?
function moveOtherHandle()
{
newPosition = transform.position;
otherHandle.position = -newPosition;
}
A mirror transformation does not mean that you invert all coordinates. You only need to invert one local coordinate (normal to the plan defined by the mirror). So you need the mirror plan coordinates (i suppose the mirror is your parent object ?)
– KiraSensei