Fix: apply steering input properly

The ship in Asteroids isn't expected to spin up while holding a steering
direction, but that's exactly what I just made it do.

Fix that problem by assigning, not accumulating, the angular velocity
for the ship.
This commit is contained in:
2025-08-09 16:09:54 -05:00
parent d4f11faf5a
commit 6191fde25a
3 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
use crate::{
physics::{Velocity, Wrapping}, AngularVelocity, GameAssets
AngularVelocity, GameAssets,
physics::{Velocity, Wrapping},
};
use bevy::prelude::*;