private void Awake() { if (joint == null) { joint = GetComponent <HingeJoint>(); } body = joint.GetComponent <Rigidbody>(); invInitialLocalRotation = joint.ReadInitialRotation(); }
private void Awake() { if (joint == null) { joint = GetComponent <HingeJoint>(); } body = joint.GetComponent <Rigidbody>(); invInitialLocalRotation = joint.ReadInitialRotation(); }