Hi guys.
I want to transmit a localRotation of a gameObject to the targetRotation of an configurable Joint.
This is the way I tried it:
private var NewRotation : Quaternion;
NewRotation = sourceGameObject.transform.localRotation;
targetGameObject.GetComponent(ConfigurableJoint).targetRotation = NewRotation;
It almost seams to work, but there is always at least one axis mirrored. I tried any thinkable combination with the Axis and Secondary axis value in the configurable joint input mask. What do I wrong ? - I quite desperated.
(You have to know I’m just started to learn scripting)
How do you put "that script into a javascript function"? Could you clarify?
– ikelaiah