Esempio n. 1
0
        void Update()
        {
            if (handInterface != null)
            {
                if (hideWithInterface)
                {
                    SetVisibility(handInterface.ShowHand());
                }
                if (!testFingers)
                {
                    boneRotationValues = handInterface.GetValues();
                }
            }

            if (isVisible)
            {
                SetTracked();
                SetPhysics();

                if ((resetOnPositionOffset && wristPosOffset > maxPosOffsetValue) || (resetOnRotationOffset && wristRotOffset > maxRotOffsetValue))
                {
                    SnapToTracked();
                }
            }
        }
Esempio n. 2
0
        void Update()
        {
            if (handInterface != null && !testFingers)
            {
                boneRotationValues = handInterface.GetValues();
            }

            SetTracked();
            SetPhysics();

            if ((resetOnPositionOffset && wristPosOffset > maxPosOffsetValue) || (resetOnRotationOffset && wristRotOffset > maxRotOffsetValue))
            {
                SnapToTracked();
            }
        }