diff --git a/src/actor.rs b/src/actor.rs index 2adf28c..a2feb67 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -40,7 +40,6 @@ impl Plugin for ActorPlugin { update_power.run_if(game_running), handle_gravity.run_if(game_running), handle_wants_rotation_change.run_if(game_running), - handle_wants_acceleration.run_if(game_running).run_if(alive), handle_wants_maxrotation.run_if(game_running), handle_wants_maxvelocity .run_if(game_running) @@ -50,10 +49,18 @@ impl Plugin for ActorPlugin { ); app.add_systems( PostUpdate, - handle_gforce - .run_if(game_running) - .after(PhysicsSet::Sync) - .after(sync::position_to_transform), + ( + handle_wants_acceleration + .run_if(game_running) + .run_if(alive) + .after(PhysicsSet::Sync) + .after(sync::position_to_transform), + handle_gforce + .run_if(game_running) + .after(PhysicsSet::Sync) + .after(sync::position_to_transform) + .after(handle_wants_acceleration), + ), ); app.add_systems( Update,