pub struct PathSession {
pub goal_x: f32,
pub goal_y: f32,
pub goal_z: f32,
/* private fields */
}Fields§
§goal_x: f32§goal_y: f32§goal_z: f32Implementations§
Source§impl PathSession
impl PathSession
pub fn plan( world: &NavWorld, from_x: f32, from_y: f32, from_z: f32, goal_x: f32, goal_y: f32, ) -> Option<Self>
pub fn plan_with_goal_z( world: &NavWorld, from_x: f32, from_y: f32, from_z: f32, goal_x: f32, goal_y: f32, goal_z: f32, ) -> Option<Self>
pub fn active(&self) -> bool
pub fn waypoints(&self) -> &[(f32, f32)]
pub fn replan(&mut self, world: &NavWorld, px: f32, py: f32, pz: f32) -> bool
pub fn note_progress(&mut self, px: f32, py: f32) -> bool
pub fn steer( &mut self, px: f32, py: f32, pz: f32, world: &NavWorld, ) -> Option<PathSteer>
Sourcepub fn remaining_distance_m(&self, px: f32, py: f32) -> f32
pub fn remaining_distance_m(&self, px: f32, py: f32) -> f32
Remaining path length in meters (rough estimate).
Trait Implementations§
Source§impl Clone for PathSession
impl Clone for PathSession
Source§fn clone(&self) -> PathSession
fn clone(&self) -> PathSession
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§
impl Freeze for PathSession
impl RefUnwindSafe for PathSession
impl Send for PathSession
impl Sync for PathSession
impl Unpin for PathSession
impl UnsafeUnpin for PathSession
impl UnwindSafe for PathSession
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