pub struct ShakeConfig {
pub max_offset: Vec2,
pub max_roll: f32,
pub frequency: f32,
pub decay: f32,
pub seed: u32,
}Expand description
Shake limits at full trauma. Offsets are in camera-aligned world units, so scale them to the camera’s visible height or distance.
Fields§
§max_offset: Vec2Maximum horizontal/vertical offset at full trauma, in world units.
max_roll: f32Maximum roll at full trauma, in radians.
frequency: f32Noise samples per second; higher values shake faster.
decay: f32Trauma removed per second (1.0 fades full trauma in one second).
seed: u32Seed selecting a reproducible shake pattern.
Trait Implementations§
Source§impl Clone for ShakeConfig
impl Clone for ShakeConfig
impl Copy for ShakeConfig
Source§impl Debug for ShakeConfig
impl Debug for ShakeConfig
Source§impl Default for ShakeConfig
impl Default for ShakeConfig
Source§impl PartialEq for ShakeConfig
impl PartialEq for ShakeConfig
impl StructuralPartialEq for ShakeConfig
Auto Trait Implementations§
impl Freeze for ShakeConfig
impl RefUnwindSafe for ShakeConfig
impl Send for ShakeConfig
impl Sync for ShakeConfig
impl Unpin for ShakeConfig
impl UnsafeUnpin for ShakeConfig
impl UnwindSafe for ShakeConfig
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