Struct three::controls::Orbit
[−]
[src]
pub struct Orbit { /* fields omitted */ }
Simple controls for Orbital Camera.
Camera is rotating around the fixed point without any restrictions. By default, it uses left mouse button as control button (hold it to rotate) and mouse wheel to adjust distance to the central point.
Methods
impl Orbit
[src]
pub fn builder<T: Object>(object: &T) -> Builder
[src]
Create new Builder
with default values.
pub fn update(&mut self, input: &Input)
[src]
Update current position and rotation of the controlled object according to the last frame input.
Trait Implementations
impl Clone for Orbit
[src]
fn clone(&self) -> Orbit
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more