Definition at line 47 of file AVR_GrabNode.cs. 48 // Hand rotation * local node rotation (relative to the master grabbable). This is the rotation the grabbed object should have
50 Quaternion zeroAngRot = hand_rot * (Quaternion.Inverse(transform.rotation) * master.transform.rotation);
52 // Rotation of the master grabbable. This is the rotation the object should have if allowd yaw pitch and roll were to be >360.
59 fromToRot = AVR.Core.Utils.Geom.ClampQuaternionRotation(fromToRot, new Vector3(allowed_pitch, allowed_yaw, allowed_roll));
|