Implement rotation on player ship

The rotation works, although it isn't visually indicated. I'll have to
swap out the circle for a triangle or something.
This commit is contained in:
2024-11-26 13:45:50 -06:00
parent b43a57e0d5
commit 596f80f572
2 changed files with 20 additions and 10 deletions

View File

@@ -8,5 +8,5 @@ use bevy::color::Color;
pub(crate) const BACKGROUND_COLOR: Color = Color::srgb(0.3, 0.3, 0.3);
pub(crate) const PLAYER_SHIP_COLOR: Color = Color::srgb(1.0, 1.0, 1.0);
pub(crate) const SHIP_THRUST_LIMIT: f32 = 10.0;
pub(crate) const SHIP_ROTATION_LIMIT: f32 = 5.0; // +/- rotation speed in... uunniittss
pub(crate) const SHIP_THRUST: f32 = 1.0;
pub(crate) const SHIP_ROTATION: f32 = 0.1; // +/- rotation speed in... radians per frame