pub struct WaypointFollower { /* private fields */ }Implementations§
Source§impl WaypointFollower
impl WaypointFollower
pub fn reset(&mut self)
pub fn next_index(&self) -> usize
Sourcepub fn target(
&mut self,
route: &Route3,
position: Vec3,
radius: f32,
max_skips: usize,
) -> Result<Option<Vec3>, NavigationError>
pub fn target( &mut self, route: &Route3, position: Vec3, radius: f32, max_skips: usize, ) -> Result<Option<Vec3>, NavigationError>
Returns the next unvisited waypoint. Stops at the endpoint; never advances merely because time passes while an actor is blocked. At most max_skips waypoints are consumed per call, even for a route of repeated points.
Trait Implementations§
Source§impl Clone for WaypointFollower
impl Clone for WaypointFollower
Source§fn clone(&self) -> WaypointFollower
fn clone(&self) -> WaypointFollower
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaypointFollower
impl Debug for WaypointFollower
Source§impl Default for WaypointFollower
impl Default for WaypointFollower
Source§fn default() -> WaypointFollower
fn default() -> WaypointFollower
Returns the “default value” for a type. Read more
impl Copy for WaypointFollower
Auto Trait Implementations§
impl Freeze for WaypointFollower
impl RefUnwindSafe for WaypointFollower
impl Send for WaypointFollower
impl Sync for WaypointFollower
impl Unpin for WaypointFollower
impl UnwindSafe for WaypointFollower
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