[−][src]Struct camera_controllers::OrbitZoomCameraSettings
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
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,
T: RefUnwindSafe,
impl<T> Send for OrbitZoomCameraSettings<T> where
T: Send,
T: Send,
impl<T> Sync for OrbitZoomCameraSettings<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OrbitZoomCameraSettings<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for OrbitZoomCameraSettings<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,