Struct camera_controllers::OrbitZoomCameraSettings [] [src]

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

Which button to press to orbit with mouse

Which button to press to zoom with mouse

Which button to press to pan with mouse

Modifier for orbiting speed (arbitrary unit)

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

Modifier for panning speed (arbitrary unit)

Modifier for zoom speed (arbitrary unit)

Methods

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

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

Set the button for orbiting

Set the button for zooming

Set the button for panning

Set the orbit speed modifier

Set the pitch speed modifier

Set the pan speed modifier

Set the zoom speed modifier