Beispiel #1
0
        private static void OverrideGrabAnimation()
        {
            VR_HandInteractSettings settings = inspectedGrabbable.GetHandInteractionSettings(activeController);
            AnimationClip           clip     = settings.animation;

            activeController.OverrideInteractAnimation(settings.animation);
        }
Beispiel #2
0
        public HandPreviewSave(VR_Grabbable grabbable)
        {
            handSettings  = grabbable.HandSettings;
            leftSettings  = grabbable.LeftHandSettings;
            rightSettings = grabbable.RightHandSettings;

            handSettingsInteractPointLocalPosition      = handSettings.interactPoint.localPosition;
            leftHandSettingsInteractPointLocalPosition  = leftSettings.interactPoint.localPosition;
            rightHandSettingsInteractPointLocalPosition = rightSettings.interactPoint.localPosition;
        }
Beispiel #3
0
 private void CopyTo(VR_HandInteractSettings from, VR_HandInteractSettings to)
 {
     to.animation      = from.animation;
     to.canInteract    = from.canInteract;
     to.rotationOffset = from.rotationOffset;
 }