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;
 }