예제 #1
0
        private void UpdateFloorOffsetForCurrentAvatar()
        {
            if (_settings.floorHeightAdjust == FloorHeightAdjust.Off || !currentlySpawnedAvatar)
            {
                _floorController.SetFloorOffset(0);

                return;
            }

            float floorOffset = _beatSaberUtilities.GetRoomAdjustedPlayerEyeHeight() - currentlySpawnedAvatar.scaledEyeHeight;

            _floorController.SetFloorOffset(floorOffset);
        }
예제 #2
0
        internal void UpdateFloorOffsetForCurrentAvatar()
        {
            if (!_settings.enableFloorAdjust || !currentlySpawnedAvatar)
            {
                _floorController.SetFloorOffset(0);

                return;
            }

            float floorOffset = _beatSaberUtilities.GetRoomAdjustedPlayerEyeHeight() - currentlySpawnedAvatar.scaledEyeHeight;

            _floorController.SetFloorOffset(floorOffset);
        }