1 using System.Collections;
2 using System.Collections.Generic;
18 public float index_pose = 0.0f;
20 public float middle_pose = 0.0f;
22 public float ring_pose = 0.0f;
24 public float pinky_pose = 0.0f;
26 public float thumb_pose = 0.0f;
28 public float allowed_pitch = 0.0f;
29 public float allowed_yaw = 0.0f;
30 public float allowed_roll = 0.0f;
33 public float pitch_test = 0.0f;
35 public float roll_test = 0.0f;
37 public float yaw_test = 0.0f;
39 public float override_radius = 0.1f;
50 Quaternion zeroAngRot = hand_rot * (Quaternion.Inverse(transform.rotation) * master.transform.rotation);
53 Quaternion fullAngRot = master.transform.rotation;
56 Quaternion fromToRot = fullAngRot * Quaternion.Inverse(zeroAngRot);
59 fromToRot = AVR.Core.Utils.Geom.ClampQuaternionRotation(fromToRot,
new Vector3(allowed_pitch, allowed_yaw, allowed_roll));
61 return zeroAngRot * fromToRot;
AVR.Phys.AVR_Grabbable master
Represents a grabbable object.
Sets the documentation html file inside of Packages/com.avr.core/Documentation/html of a given class...
Represents a grabbable node on an AVR_Grabbable. Nodes have preset poses/constraints for the hand tha...
Quaternion get_target_rotation(Quaternion hand_rot)