Struct fps_camera::FirstPersonSettings
[−]
[src]
pub struct FirstPersonSettings<T = f32> { pub speed_horizontal: T, pub speed_vertical: T, pub mouse_sensitivity_horizontal: T, pub mouse_sensitivity_vertical: T, }
First person camera settings.
Fields
speed_horizontal: T
The horizontal movement speed.
This is measured in units per second.
speed_vertical: T
The vertical movement speed.
This is measured in units per second.
mouse_sensitivity_horizontal: T
The horizontal mouse sensitivity.
This is a multiplier applied to horizontal mouse movements.
mouse_sensitivity_vertical: T
The vertical mouse sensitivity.
This is a multiplier applied to vertical mouse movements.
Trait Implementations
impl<T> Default for FirstPersonSettings<T> where
T: Float,
[src]
T: Float,
fn default() -> FirstPersonSettings<T>
[src]
Creates new first person camera settings with wasd defaults.