Hello.
I’ve seen ways to calculate the current rotation of a Configuable Joint, but everybody said that the joint needs to have the same axis between the body and the connected body. I was wondering if there was a way to get the current rotation without the same axis.
My current code:
joint.targetRotation = Quaternion.FromToRotation(
joint.axis ,
joint.connectedBody.transform.rotation.eulerAngles
);