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

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

A bot with 2d position,velocity,acceleration

Fields

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

Implementations

impl Bot[src]

pub fn steer_to_point(
    &self,
    target: &Vec2<f32>,
    mag: f32,
    max_speed: f32
) -> Vec2<f32>
[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 Clone for Bot[src]

impl Copy for Bot[src]

impl Debug for Bot[src]

Auto Trait Implementations

impl RefUnwindSafe for Bot

impl Send for Bot

impl Sync for Bot

impl Unpin for Bot

impl UnwindSafe for Bot

Blanket Implementations

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,