pub struct Evade {
pub threat_pos: Vec2,
pub threat_vel: Vec2,
pub panic_dist: f32,
pub max_predict_time: f32,
}Expand description
Predicts where the threat will be and steers away.
Fields§
§threat_pos: Vec2§threat_vel: Vec2§panic_dist: f32§max_predict_time: f32Implementations§
Auto Trait Implementations§
impl Freeze for Evade
impl RefUnwindSafe for Evade
impl Send for Evade
impl Sync for Evade
impl Unpin for Evade
impl UnsafeUnpin for Evade
impl UnwindSafe for Evade
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