Enum three_d::renderer::control::CameraAction
source · pub enum CameraAction {
None,
Pitch {
speed: f32,
},
OrbitUp {
target: Vec3,
speed: f32,
},
Yaw {
speed: f32,
},
OrbitLeft {
target: Vec3,
speed: f32,
},
Roll {
speed: f32,
},
Left {
speed: f32,
},
Up {
speed: f32,
},
Forward {
speed: f32,
},
Zoom {
target: Vec3,
speed: f32,
min: f32,
max: f32,
},
}Expand description
A set of possible actions to apply to a camera when recieving input.
Variants§
None
No action.
Pitch
Rotate the camera around the horizontal axis as seen from the camera.
OrbitUp
Orbits around the given target in the up direction as seen from the camera.
Yaw
Rotate the camera around the vertical axis as seen from the camera.
OrbitLeft
Orbits around the given target in the left direction as seen from the camera.
Roll
Rotate the camera around the forward axis as seen from the camera.
Left
Moves the camera to the left.
Up
Moves the camera up.
Forward
Moves the camera forward.
Zoom
Fields
Zooms towards the given target.
Trait Implementations§
source§impl Clone for CameraAction
impl Clone for CameraAction
source§fn clone(&self) -> CameraAction
fn clone(&self) -> CameraAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CameraAction
impl Debug for CameraAction
source§impl Default for CameraAction
impl Default for CameraAction
source§impl PartialEq<CameraAction> for CameraAction
impl PartialEq<CameraAction> for CameraAction
source§fn eq(&self, other: &CameraAction) -> bool
fn eq(&self, other: &CameraAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.