Skip to content

Commit

Permalink
Add feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
CuddlyBunion341 committed Jan 30, 2025
1 parent 62fedcb commit c471aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ path = "src/server/main.rs"
wireframe = []
debug_ui = []
renet_visualizer = []
physics_debug = []

1 change: 1 addition & 0 deletions src/client/player/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ impl Plugin for PlayerPlugin {
info!("Building PlayerPlugin");
app.add_plugins(FpsControllerPlugin);
app.add_plugins(RapierPhysicsPlugin::<NoUserData>::default());
#[cfg(feature = "physics_debug")]
app.add_plugins(RapierDebugRenderPlugin::default());
app.add_event::<player_events::PlayerColliderUpdateEvent>();
app.insert_resource(player_resources::BlockSelection::new());
Expand Down

0 comments on commit c471aeb

Please sign in to comment.