Struct fps_camera::FirstPerson [] [src]

pub struct FirstPerson<T = f32> {
    pub settings: FirstPersonSettings<T>,
    pub yaw: T,
    pub pitch: T,
    pub position: [T; 3],
    pub velocity: T,
    pub actions: Actions,
}

Models a flying first person camera.

Fields

The first person camera settings.

The yaw angle (in radians).

The pitch angle (in radians).

The position of the camera.

The velocity we are moving.

The active actions.

Methods

impl<T> FirstPerson<T> where
    T: Float, 
[src]

[src]

Creates a new first person camera.

[src]

Computes camera.

[src]

Updates the camera for an elapsed number of seconds.

[src]

Updates the camera for a mouse movement.

[src]

Gets the direction of movement.

[src]

[src]