mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: gun to 0 0 on default
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user