示例#1
0
        private void maybeTriggerGuiRecenter()
        {
            if (isRecentering)
            {
                return;
            }
            bool movingThisFrame        = VRPlayer.isMoving;
            bool startedMovingThisFrame = movingThisFrame && !movingLastFrame;

            movingLastFrame = movingThisFrame;
            if ((startedMovingThisFrame && VHVRConfig.RecenterGuiOnMove()) || headGuiAngleExceeded(movingThisFrame))
            {
                triggerGuiRecenter();
            }
        }