[][src]Struct ruckus::FlyCamera

pub struct FlyCamera {
    pub position: Vec3,
    pub look_direction: Vec3,
    pub rotation: Vec3,
    pub speed: f32,
    pub sensitivity: f32,
}

Fields

position: Vec3look_direction: Vec3rotation: Vec3speed: f32sensitivity: f32

Implementations

impl FlyCamera[src]

pub fn new() -> Self[src]

pub fn view(&self) -> Mat4[src]

pub fn target(&self) -> Vec3[src]

pub fn move_forward(&mut self, delta_time: f32)[src]

pub fn move_backward(&mut self, delta_time: f32)[src]

pub fn move_left(&mut self, delta_time: f32)[src]

pub fn move_right(&mut self, delta_time: f32)[src]

pub fn look_towards(&mut self, offset: &Vec3)[src]

Trait Implementations

impl Default for FlyCamera[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.