pub struct NavmeshQuery {
pub start: Point2,
pub goal: Point2,
pub budget: SearchBudget,
}Expand description
Start/goal endpoints for connectivity checks and route search.
Points are continuous world coordinates; cell membership is resolved by the mesh.
Optional condor_core::SearchBudget caps expansions and/or wall-clock time for
pathfinders; connectivity-only Navmesh::query ignores the budget.
Fields§
§start: Point2Continuous start endpoint; must locate in at least one walkable cell.
goal: Point2Continuous goal endpoint; must locate in at least one walkable cell.
budget: SearchBudgetOptional expansion / wall-clock caps for route search (default unlimited).
Implementations§
Sourcepub const fn new(start: Point2, goal: Point2) -> NavmeshQuery
pub const fn new(start: Point2, goal: Point2) -> NavmeshQuery
Pairs start and goal world points with an unlimited budget; cell membership is resolved at query time.
Sourcepub const fn with_budget(self, budget: SearchBudget) -> NavmeshQuery
pub const fn with_budget(self, budget: SearchBudget) -> NavmeshQuery
Returns a copy of this query with the given budget.
Trait Implementations§
Source§fn clone(&self) -> NavmeshQuery
fn clone(&self) -> NavmeshQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more