[][src]Struct duckduckgeo::bot::Bot

pub struct Bot {
    pub pos: Vec2<f32>,
    pub vel: Vec2<f32>,
    pub acc: Vec2<f32>,
}

A bot

Fields

pos: Vec2<f32>vel: Vec2<f32>acc: Vec2<f32>

Methods

impl Bot[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]

type N = f32

impl Clone for Bot[src]

impl Copy for Bot[src]

impl Debug for Bot[src]

Auto Trait Implementations

impl Unpin for Bot

impl Sync for Bot

impl Send 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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,