fix: mino line depression disparity on live updates

This commit is contained in:
TrèsAbhi committed 2024-06-29 13:35:06 -05:00
1 parent f002c23e70
commit 47c3b2de0e
1 file changed
+3 -1
@@ -38,7 +38,9 @@ export function RotationInputs() {
function handleTransformEvent({ pitch, yaw }: ModelTransformEventData) {
if (!pitchInput.current || !yawInput.current) return;
pitchInput.current.value = (-radToDeg(pitch)).toFixed(1);
pitchInput.current.value = (
-radToDeg(pitch) + (tankModelDefinition.turretRotation?.pitch ?? 0)
).toFixed(1);
if (yaw === undefined) return;