Skip to content

Commit

Permalink
Add with_walkable_radius
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimsey committed Apr 6, 2024
1 parent 4b18b0c commit a038ebc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ impl NavMeshSettings {
max_tile_generation_tasks: NonZeroU16::new(8),
}
}
/// Setter for [`NavMeshSettings::walkable_radius`]
pub fn with_walkable_radius(mut self, walkable_radius: u16) -> Self {
self.walkable_radius = walkable_radius;

self
}
/// Setter for [`NavMeshSettings::tile_width`]
pub fn with_tile_width(mut self, tile_width: u16) -> Self {
self.tile_width = tile_width;
Expand Down

0 comments on commit a038ebc

Please sign in to comment.