[][src]Struct camera_controllers::OrbitZoomCameraSettings

pub struct OrbitZoomCameraSettings<T = f32> {
    pub orbit_button: Button,
    pub zoom_button: Button,
    pub pan_button: Button,
    pub orbit_speed: T,
    pub pitch_speed: T,
    pub pan_speed: T,
    pub zoom_speed: T,
}

Specifies key bindings and speed modifiers for OrbitZoomCamera

Fields

orbit_button: Button

Which button to press to orbit with mouse

zoom_button: Button

Which button to press to zoom with mouse

pan_button: Button

Which button to press to pan with mouse

orbit_speed: T

Modifier for orbiting speed (arbitrary unit)

pitch_speed: T

Modifier for pitch speed relative to orbiting speed (arbitrary unit). To reverse pitch direction, set this to -1.

pan_speed: T

Modifier for panning speed (arbitrary unit)

zoom_speed: T

Modifier for zoom speed (arbitrary unit)

Implementations

impl<T: Float> OrbitZoomCameraSettings<T>[src]

pub fn default() -> OrbitZoomCameraSettings<T>[src]

Clicking and dragging OR two-finger scrolling will orbit camera, with LShift as pan modifer and LCtrl as zoom modifier

pub fn orbit_button(self, button: Button) -> OrbitZoomCameraSettings<T>[src]

Set the button for orbiting

pub fn zoom_button(self, button: Button) -> OrbitZoomCameraSettings<T>[src]

Set the button for zooming

pub fn pan_button(self, button: Button) -> OrbitZoomCameraSettings<T>[src]

Set the button for panning

pub fn orbit_speed(self, s: T) -> OrbitZoomCameraSettings<T>[src]

Set the orbit speed modifier

pub fn pitch_speed(self, s: T) -> OrbitZoomCameraSettings<T>[src]

Set the pitch speed modifier

pub fn pan_speed(self, s: T) -> OrbitZoomCameraSettings<T>[src]

Set the pan speed modifier

pub fn zoom_speed(self, s: T) -> OrbitZoomCameraSettings<T>[src]

Set the zoom speed modifier

Auto Trait Implementations

impl<T> RefUnwindSafe for OrbitZoomCameraSettings<T> where
    T: RefUnwindSafe

impl<T> Send for OrbitZoomCameraSettings<T> where
    T: Send

impl<T> Sync for OrbitZoomCameraSettings<T> where
    T: Sync

impl<T> Unpin for OrbitZoomCameraSettings<T> where
    T: Unpin

impl<T> UnwindSafe for OrbitZoomCameraSettings<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.