private void UpdateFloorOffsetForCurrentAvatar() { if (_settings.floorHeightAdjust == FloorHeightAdjust.Off || !currentlySpawnedAvatar) { _floorController.SetFloorOffset(0); return; } float floorOffset = _beatSaberUtilities.GetRoomAdjustedPlayerEyeHeight() - currentlySpawnedAvatar.scaledEyeHeight; _floorController.SetFloorOffset(floorOffset); }
internal void UpdateFloorOffsetForCurrentAvatar() { if (!_settings.enableFloorAdjust || !currentlySpawnedAvatar) { _floorController.SetFloorOffset(0); return; } float floorOffset = _beatSaberUtilities.GetRoomAdjustedPlayerEyeHeight() - currentlySpawnedAvatar.scaledEyeHeight; _floorController.SetFloorOffset(floorOffset); }