feat: gun to 0 0 on default

This commit is contained in:
TrèsAbhi committed 2024-01-22 16:55:09 -06:00
1 parent 5295aa37be
commit 05ad24c8f5
1 file changed
+13
@@ -93,6 +93,19 @@ export function TankSandbox({ duel }: TankSandboxProps) {
}
case Pose.Default:
mutateTankopediaTemporary((draft) => {
const [pitch, yaw] = applyPitchYawLimits(
0,
0,
gunModelDefinition.pitch,
turretModelDefinition.yaw,
);
modelTransformEvent.emit({ pitch, yaw });
draft.model.pose.pitch = pitch;
draft.model.pose.yaw = yaw;
});
break;
}
}