I need to coppy the rotation values of an object to other objects ingame.
I wrote :
var target : Transform;
function Update () {
transform.rotation.x = target.transform.rotation.x;
transform.rotation.y = target.transform.rotation.y;
transform.rotation.z = target.transform.rotation.z;
}
But it doesn’t work. The Rotations do update but they are not 1:1 the same and vary within a 40° range on all axis. This is way to much.
How else could I do it?
Parents don’t Work since there are several objects depending on a single one, all with a big offset and transforming the parents rotation only causes the Objects to shift regarding their offset.