예제 #1
0
        private void Awake()
        {
            _wristOffset = target as HandWristOffset;

            _offsetPositionProperty    = serializedObject.FindProperty("_offset");
            _rotationProperty          = serializedObject.FindProperty("_rotation");
            _relativeTransformProperty = serializedObject.FindProperty("_relativeTransform");
        }
예제 #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);
 }
예제 #3
0
 public void InjectGripPoint(HandWristOffset gripPoint)
 {
     _gripPoint = gripPoint;
 }