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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user