diff --git a/Cargo.lock b/Cargo.lock index 7b05f584..bdd7020c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2696,12 +2696,14 @@ dependencies = [ [[package]] name = "oxidized_navigation" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d447d9d6e2b146c398a8824504cc4546b9f04c23df401de0d3a04901e5d67eae" +checksum = "492cce50ca064bb1437f984891e41181de5e958fa8ae955787eec137042cbf31" dependencies = [ "bevy", "bevy_rapier3d", + "nalgebra", + "parry3d", "smallvec", ] diff --git a/Cargo.toml b/Cargo.toml index 42ebdd7e..8ac51e1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ bevy_replicon = "0.9" bevy_rapier3d = "0.22" bevy_mod_outline = "0.5" bevy_polyline = "0.7" -oxidized_navigation = "0.6" +oxidized_navigation = { version = "0.7", features = ["rapier"] } leafwing-input-manager = "0.10" serde = "1.0" strum = { version = "0.25", features = ["derive"] } diff --git a/src/main.rs b/src/main.rs index e0ed2619..985be786 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,24 +56,22 @@ fn main() { WireframePlugin, AtmospherePlugin, InputManagerPlugin::::default(), - OxidizedNavigationPlugin { - settings: NavMeshSettings { - cell_width: 0.25, - cell_height: 0.1, - tile_width: 100, - world_half_extents: 250.0, - world_bottom_bound: -100.0, - max_traversable_slope_radians: (40.0_f32 - 0.1).to_radians(), - walkable_height: 20, - walkable_radius: 1, - step_height: 3, - min_region_area: 100, - merge_region_area: 500, - max_contour_simplification_error: 1.1, - max_edge_length: 80, - max_tile_generation_tasks: None, - }, - }, + OxidizedNavigationPlugin::::new(NavMeshSettings { + cell_width: 0.25, + cell_height: 0.1, + tile_width: 100, + world_half_extents: 250.0, + world_bottom_bound: -100.0, + max_traversable_slope_radians: (40.0_f32 - 0.1).to_radians(), + walkable_height: 20, + walkable_radius: 1, + step_height: 3, + min_region_area: 100, + merge_region_area: 500, + max_contour_simplification_error: 1.1, + max_edge_length: 80, + max_tile_generation_tasks: None, + }), RapierPhysicsPlugin::::default(), RapierDebugRenderPlugin::default(), OutlinePlugin,