コード例 #1
0
ファイル: VRGUI.cs プロジェクト: brandonmousseau/vhvr-mod
        private bool headGuiAngleExceeded(bool moving)
        {
            var maxAngle = moving ? VHVRConfig.MobileGuiRecenterAngle() : VHVRConfig.StationaryGuiRecenterAngle();

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