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]

[src]

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

[src]

Set the button for orbiting

[src]

Set the button for zooming

[src]

Set the button for panning

[src]

Set the orbit speed modifier

[src]

Set the pitch speed modifier

[src]

Set the pan speed modifier

[src]

Set the zoom speed modifier