Struct ascending_camera::controls::FlyingControls
source · pub struct FlyingControls {
pub inputs: FlyingInputs,
/* private fields */
}Fields§
§inputs: FlyingInputsImplementations§
source§impl FlyingControls
impl FlyingControls
pub fn direction(&self) -> [f32; 3]
pub fn new(settings: FlyingSettings, position: [f32; 3]) -> Self
pub fn pitch(&self) -> f32
pub fn position(&self) -> [f32; 3]
pub fn set_pitch(&mut self, pitch: f32)
pub fn set_position(&mut self, position: [f32; 3])
pub fn set_yaw(&mut self, yaw: f32)
pub fn yaw(&self) -> f32
Trait Implementations§
source§impl Clone for FlyingControls
impl Clone for FlyingControls
source§fn clone(&self) -> FlyingControls
fn clone(&self) -> FlyingControls
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 moreAuto Trait Implementations§
impl Freeze for FlyingControls
impl RefUnwindSafe for FlyingControls
impl Send for FlyingControls
impl Sync for FlyingControls
impl Unpin for FlyingControls
impl UnwindSafe for FlyingControls
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more