Skip to content

Commit

Permalink
fix speed in example
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Sep 30, 2024
1 parent 07c72c2 commit 258fafa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() {
remove_obstacles,
ui::display_settings,
ui::update_settings::<10>,
agent3d::give_target_to_navigator::<10, MESH_WIDTH, MESH_HEIGHT>,
agent3d::give_target_to_navigator::<MESH_WIDTH, MESH_HEIGHT>,
agent3d::move_navigator::<100>,
agent3d::display_navigator_path.after(agent3d::move_navigator::<100>),
agent3d::refresh_path::<MESH_WIDTH, MESH_HEIGHT>,
Expand Down
2 changes: 1 addition & 1 deletion examples/helpers/agent3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn setup_agent<const SIZE: u32>(
}
}

pub fn give_target_to_navigator<const SIZE: u32, const X: u32, const Y: u32>(
pub fn give_target_to_navigator<const X: u32, const Y: u32>(
mut commands: Commands,
navigators: Query<(Entity, &Transform, &Navigator), Without<Path>>,
mut navmeshes: ResMut<Assets<NavMesh>>,
Expand Down
4 changes: 2 additions & 2 deletions examples/primitive_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ fn main() {
remove_obstacles,
ui::display_settings,
ui::update_settings::<10>,
agent2d::give_target_to_navigator::<100, MESH_WIDTH, MESH_HEIGHT>,
agent2d::move_navigator::<10>,
agent2d::give_target_to_navigator::<MESH_WIDTH, MESH_HEIGHT>,
agent2d::move_navigator::<100>,
agent2d::display_navigator_path,
agent2d::refresh_path::<MESH_WIDTH, MESH_HEIGHT>,
),
Expand Down

0 comments on commit 258fafa

Please sign in to comment.