pub struct Pursuit {
pub target_pos: Vec2,
pub target_vel: Vec2,
pub max_predict_time: f32,
}Expand description
Predicts where the target will be and steers toward that position.
Fields§
§target_pos: Vec2§target_vel: Vec2§max_predict_time: f32Implementations§
Auto Trait Implementations§
impl Freeze for Pursuit
impl RefUnwindSafe for Pursuit
impl Send for Pursuit
impl Sync for Pursuit
impl Unpin for Pursuit
impl UnsafeUnpin for Pursuit
impl UnwindSafe for Pursuit
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