pub struct ShakeSample {
pub offset: Vec2,
pub roll: f32,
}Expand description
Displacement to apply to a camera this frame.
Fields§
§offset: Vec2Camera-aligned offset: +X right and +Y screen-down in 2D, +Y up in 3D.
roll: f32Roll in radians.
Trait Implementations§
Source§impl Clone for ShakeSample
impl Clone for ShakeSample
impl Copy for ShakeSample
Source§impl Debug for ShakeSample
impl Debug for ShakeSample
Source§impl Default for ShakeSample
impl Default for ShakeSample
Source§impl PartialEq for ShakeSample
impl PartialEq for ShakeSample
impl StructuralPartialEq for ShakeSample
Auto Trait Implementations§
impl Freeze for ShakeSample
impl RefUnwindSafe for ShakeSample
impl Send for ShakeSample
impl Sync for ShakeSample
impl Unpin for ShakeSample
impl UnsafeUnpin for ShakeSample
impl UnwindSafe for ShakeSample
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