pub struct Rotation {
pub rotation: Quaternion<f32>,
}Expand description
Directly sets the rotation of the camera
Fields§
§rotation: Quaternion<f32>Implementations§
Trait Implementations§
Source§impl<H: Handedness> RigDriver<H> for Rotation
impl<H: Handedness> RigDriver<H> for Rotation
Source§fn update(&mut self, params: RigUpdateParams<'_, H>) -> Transform<H>
fn update(&mut self, params: RigUpdateParams<'_, H>) -> Transform<H>
Calculates the transform of this driver component based on the parent
provided in
params.Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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