Exemplo n.º 1
0
        private bool headGuiAngleExceeded(bool moving)
        {
            var maxAngle = moving ? VHVRConfig.MobileGuiRecenterAngle() : VHVRConfig.StationaryGuiRecenterAngle();

            return(Mathf.Abs(Vector3.Angle(getCurrentGuiDirection(), getTargetGuiDirection())) % 360f > maxAngle);
        }