diff --git a/src/actor.rs b/src/actor.rs index 483baeb..755fd0d 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -31,7 +31,7 @@ impl Plugin for ActorPlugin { update_physics_lifeforms, update_power, handle_wants_maxrotation, - handle_wants_maxvelocity, + handle_wants_maxvelocity.run_if(any_with_component::), handle_wants_lookat.run_if(alive), ), ); @@ -548,11 +548,29 @@ fn handle_wants_maxrotation( /// Slows down NPC's movement until they reach their target velocity. fn handle_wants_maxvelocity( time: Res