mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: mino line depression disparity on live updates
This commit is contained in:
1 parent
f002c23e70
commit
47c3b2de0e
1 file changed
+3
-1
@@ -38,7 +38,9 @@ export function RotationInputs() {
|
|||||||
function handleTransformEvent({ pitch, yaw }: ModelTransformEventData) {
|
function handleTransformEvent({ pitch, yaw }: ModelTransformEventData) {
|
||||||
if (!pitchInput.current || !yawInput.current) return;
|
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;
|
if (yaw === undefined) return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user