pub struct FirstPersonSettings<T = f32> {
pub speed_horizontal: T,
pub speed_vertical: T,
pub mouse_sensitivity_horizontal: T,
pub mouse_sensitivity_vertical: T,
}Expand description
First person camera settings.
Fields§
§speed_horizontal: TThe horizontal movement speed.
This is measured in units per second.
speed_vertical: TThe vertical movement speed.
This is measured in units per second.
mouse_sensitivity_horizontal: TThe horizontal mouse sensitivity.
This is a multiplier applied to horizontal mouse movements.
mouse_sensitivity_vertical: TThe vertical mouse sensitivity.
This is a multiplier applied to vertical mouse movements.
Trait Implementations§
Source§impl<T> Default for FirstPersonSettings<T>where
T: Float,
impl<T> Default for FirstPersonSettings<T>where
T: Float,
Source§fn default() -> FirstPersonSettings<T>
fn default() -> FirstPersonSettings<T>
Creates new first person camera settings with wasd defaults.
Auto Trait Implementations§
impl<T> Freeze for FirstPersonSettings<T>where
T: Freeze,
impl<T> RefUnwindSafe for FirstPersonSettings<T>where
T: RefUnwindSafe,
impl<T> Send for FirstPersonSettings<T>where
T: Send,
impl<T> Sync for FirstPersonSettings<T>where
T: Sync,
impl<T> Unpin for FirstPersonSettings<T>where
T: Unpin,
impl<T> UnwindSafe for FirstPersonSettings<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more