private void maybeTriggerGuiRecenter() { if (isRecentering) { return; } bool movingThisFrame = VRPlayer.isMoving; bool startedMovingThisFrame = movingThisFrame && !movingLastFrame; movingLastFrame = movingThisFrame; if ((startedMovingThisFrame && VHVRConfig.RecenterGuiOnMove()) || headGuiAngleExceeded(movingThisFrame)) { triggerGuiRecenter(); } }