From bae7ca272042f90a2e833e5dbebd0f014de86039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 18 Feb 2026 18:09:05 -0600 Subject: [PATCH] fix: turret angles round back to \pm 180deg --- packages/website/src/core/blitz/applyPitchYawLimits.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/website/src/core/blitz/applyPitchYawLimits.ts b/packages/website/src/core/blitz/applyPitchYawLimits.ts index 420a78323..5176c1ff9 100644 --- a/packages/website/src/core/blitz/applyPitchYawLimits.ts +++ b/packages/website/src/core/blitz/applyPitchYawLimits.ts @@ -2,9 +2,9 @@ import { normalizeAngleRad, type PitchLimits, type YawLimits, -} from '@blitzkit/core'; -import { clamp } from 'lodash-es'; -import { degToRad } from 'three/src/math/MathUtils.js'; +} from "@blitzkit/core"; +import { clamp } from "lodash-es"; +import { degToRad } from "three/src/math/MathUtils.js"; export const DEFAULT_PITCH_TRANSITION = 15; @@ -87,5 +87,5 @@ export function applyPitchYawLimits( newPitch = clamp(newPitch, lowerPitch, upperPitch); - return [newPitch, newYaw] as const; + return [newPitch, normalizeAngleRad(newYaw)] as const; }