#[non_exhaustive]pub enum NavigationMode {
Arcball,
Turntable,
Planar,
Fly,
}Expand description
How the camera responds to orbit drag input.
Set on the OrbitCameraController to switch between the
four navigation styles.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Arcball
Unconstrained arcball rotation (default).
Drag rotates the camera freely around the orbit centre in any direction.
Turntable
Yaw around the world Z axis; pitch clamped to +/-89 deg.
The up vector always stays vertical : the camera cannot roll or go upside-down. Preferred by users who expect a fixed-up-axis orbit (common in scientific / CAD applications).
Planar
Pan only : no rotation, no centre-aimed zoom.
Drag translates the orbit centre in the camera plane. Scroll still adjusts the zoom level. Intended for 2D data inspection where orbit would be disorienting.
Fly
Free-fly through the scene.
Mouse drag acts as mouselook (yaw + pitch with the eye held fixed).
WASD / Q / E translate the camera position at the OrbitCameraController fly speed
units per frame. The Default binding preset must be active for
the movement keys to be resolved.
This flies the camera itself; it is distinct from the body-attached
FirstPersonCameraController, which follows a position you supply.
Trait Implementations§
Source§fn clone(&self) -> NavigationMode
fn clone(&self) -> NavigationMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more