[−][src]Struct duckduckgeo::bot::Bot
A bot with 2d position,velocity,acceleration
Fields
pos: Vec2<f32>
vel: Vec2<f32>
acc: Vec2<f32>
Methods
impl Bot
[src]
pub fn move_to_point(&mut self, target: Vec2<f32>, radius: f32) -> bool
[src]
pub fn update(&mut self)
[src]
pub fn create_bbox(&self, bot_scene: &BotProp) -> Rect<f32>
[src]
pub fn create_bbox_nan(&self, bot_scene: &BotProp) -> Rect<NotNan<f32>>
[src]
pub fn new(pos: Vec2<f32>) -> Bot
[src]
pub fn push_away(&mut self, b: &mut Self, radius: f32, max_amount: f32)
[src]
Trait Implementations
impl BorderCollideTrait for Bot
[src]
impl Clone for Bot
[src]
impl Copy for Bot
[src]
impl Debug for Bot
[src]
Auto Trait Implementations
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl UnwindSafe for Bot
impl RefUnwindSafe for Bot
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,