I’ve been looking and looking trying to find this.
What I want is to have two rigidbody objects so that when one is rotated, the other rotates in all 3 dimensions in the same direction - when they are locked together.
When they are not locked, they don’t rotate together, and when they become locked together again the following object doesn’t “SNAP” to the x, y and z axis of the leader object, but continues to rotate with it from its current angle.
So you could for example grab the following object, turn it, then let go and grab it again and turn it farther, etc.
When you want to “lock” the objects together you should set the transform.parent
of one object to the transform
of the other, and disable the Rigidbody component of the child object. To “unlock” you simply unparent the object and enable the Rigidbody again.
I don’t think it is parenting that you are looking at… (i.e when one object rotates, the other object rotates around the first object). Rather it is, two objects rotating together. i.e One object “mimics” the other object… The easiest thing i would do is to copy the rotation durin update (or Late Update) and apply to self…