diff --git a/src/physics.rs b/src/physics.rs index 3a55f9a..3513719 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -4,6 +4,8 @@ use crate::GameSet; pub struct PhysicsPlugin; +const AIR_RESISTANCE: f32 = 0.5; + impl Plugin for PhysicsPlugin { fn build(&self, app: &mut App) { app.add_systems( @@ -32,11 +34,11 @@ pub struct WalkController { } fn walk_system(time: Res