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,
}
Expand description

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§

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

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.