private void Awake()
        {
            _wristOffset = target as HandWristOffset;

            _offsetPositionProperty    = serializedObject.FindProperty("_offset");
            _rotationProperty          = serializedObject.FindProperty("_rotation");
            _relativeTransformProperty = serializedObject.FindProperty("_relativeTransform");
        }
Esempio n. 2
0
 public void InjectAllHandGrabInteractor(HandGrabAPI handGrabApi,
     IHand hand, Rigidbody rigidbody, GrabTypeFlags supportedGrabTypes, HandWristOffset gripPoint)
 {
     InjectHandGrabApi(handGrabApi);
     InjectHand(hand);
     InjectRigidbody(rigidbody);
     InjectSupportedGrabTypes(supportedGrabTypes);
     InjectGripPoint(gripPoint);
 }
Esempio n. 3
0
 public void InjectGripPoint(HandWristOffset gripPoint)
 {
     _gripPoint = gripPoint;
 }