pub struct Seek {
pub target: Vec2,
}Expand description
Steers toward a target position at full speed.
Fields§
§target: Vec2Implementations§
Source§impl Seek
impl Seek
pub fn new(target: Vec2) -> Self
pub fn steer(&self, agent: &SteeringAgent) -> SteeringOutput
Auto Trait Implementations§
impl Freeze for Seek
impl RefUnwindSafe for Seek
impl Send for Seek
impl Sync for Seek
impl Unpin for Seek
impl UnsafeUnpin for Seek
impl UnwindSafe for Seek
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