Struct goshawk::TurnSettings[][src]

pub struct TurnSettings {
    pub mouse_turn_margin: f32,
    pub yaw_range: RangeInclusive<f32>,
    pub mouse_accel: f32,
    pub keyboard_accel: f32,
    pub max_speed: f32,
    pub idle_deceleration: f32,
    pub left_keys: Cow<'static, [KeyCode]>,
    pub right_keys: Cow<'static, [KeyCode]>,
}

Fields

mouse_turn_margin: f32

The distance that the mouse must be from the top of the screen before it will start turning, provided that it is within the pan settings margin. This is measured as a ratio of the height dimension of the screen.

yaw_range: RangeInclusive<f32>

The range of yaw that the camera may turn, in radians

mouse_accel: f32

The acceleration which the mouse applies to the camera's turning velocity (measured in radians per seconds squared)

keyboard_accel: f32

The acceleration which the keyboard applies to the camera's turning velocity (measured in radians per seconds squared)

max_speed: f32idle_deceleration: f32left_keys: Cow<'static, [KeyCode]>

The keys which will cause the camera to turn left

right_keys: Cow<'static, [KeyCode]>

The keys which will cause the camera to turn right

Implementations

impl TurnSettings[src]

pub const fn new() -> Self[src]

Trait Implementations

impl Default for TurnSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> FromResources for T where
    T: Default

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,