use happy_feet as kinematic character controller (#42)
This commit is contained in:
@@ -15,7 +15,10 @@ struct ActivePlatform {
|
||||
pub fn plugin(app: &mut App) {
|
||||
app.register_type::<ActivePlatform>();
|
||||
app.add_systems(OnEnter(GameState::Playing), init);
|
||||
app.add_systems(Update, move_active.run_if(in_state(GameState::Playing)));
|
||||
app.add_systems(
|
||||
FixedUpdate,
|
||||
move_active.run_if(in_state(GameState::Playing)),
|
||||
);
|
||||
}
|
||||
|
||||
fn init(
|
||||
|
||||
Reference in New Issue
Block a user