[−][src]Struct camera_controllers::FirstPersonSettings
First person camera settings.
Fields
Which button to press to move forward.
Which button to press to move backward.
Which button to press to strafe left.
Which button to press to strafe right.
Which button to press to fly up.
Which button to press to fly down.
Which button to press to move faster.
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.
Implementations
impl<T> FirstPersonSettings<T> where
T: Float,
[src]
T: Float,
pub fn keyboard_wasd() -> FirstPersonSettings<T>
[src]
Creates new first person camera settings with wasd defaults.
pub fn keyboard_esdf() -> FirstPersonSettings<T>
[src]
Creates a new first person camera settings with esdf defaults.
pub fn keyboard_zqsd() -> FirstPersonSettings<T>
[src]
Creates new first person camera settings with zqsd defaults (azerty keyboard layout).
Auto Trait Implementations
impl<T> RefUnwindSafe for FirstPersonSettings<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for FirstPersonSettings<T> where
T: Send,
T: Send,
impl<T> Sync for FirstPersonSettings<T> where
T: Sync,
T: Sync,
impl<T> Unpin for FirstPersonSettings<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for FirstPersonSettings<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,