From 9fc8a8e2a2bcd05b4fa0f1d92d1110906ffff403 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 11 Jul 2026 17:41:14 -0500 Subject: [PATCH] more generous pitch transition zones --- packages/website/src/core/blitz/applyPitchYawLimits.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/website/src/core/blitz/applyPitchYawLimits.ts b/packages/website/src/core/blitz/applyPitchYawLimits.ts index 5176c1ff9..f8757b7fd 100644 --- a/packages/website/src/core/blitz/applyPitchYawLimits.ts +++ b/packages/website/src/core/blitz/applyPitchYawLimits.ts @@ -6,7 +6,7 @@ import { import { clamp } from "lodash-es"; import { degToRad } from "three/src/math/MathUtils.js"; -export const DEFAULT_PITCH_TRANSITION = 15; +export const DEFAULT_PITCH_TRANSITION = 20; export function applyPitchYawLimits( pitch: number, // rad @@ -31,7 +31,7 @@ export function applyPitchYawLimits( let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff; let upperPitch = -degToRad(pitchLimits.min) + elevationBuff; const transition = degToRad( - pitchLimits.transition ?? DEFAULT_PITCH_TRANSITION, + pitchLimits.transition || DEFAULT_PITCH_TRANSITION, ); if (pitchLimits.back) {