pub struct AudioEvent {
pub position: Vec3Fix,
pub volume: Fix128,
pub pitch: Fix128,
pub decay: Fix128,
pub brightness: Fix128,
pub roughness: Fix128,
pub event_type: AudioEventType,
pub material_a: MaterialType,
pub material_b: MaterialType,
}Expand description
Audio parameters generated from a physics event
Fields§
§position: Vec3FixWorld-space position for 3D spatialization
volume: Fix128Volume (0..1, linear)
pitch: Fix128Pitch multiplier (1.0 = normal, 0.5 = octave down, 2.0 = octave up)
decay: Fix128Decay time in seconds
brightness: Fix128Brightness (0..1, controls high-frequency content)
roughness: Fix128Roughness (0..1, 0 = clean, 1 = gritty/textured)
event_type: AudioEventTypeImpact type
material_a: MaterialTypeMaterial A
material_b: MaterialTypeMaterial B
Trait Implementations§
Source§impl Clone for AudioEvent
impl Clone for AudioEvent
impl Copy for AudioEvent
Source§impl Debug for AudioEvent
impl Debug for AudioEvent
impl Eq for AudioEvent
Source§impl PartialEq for AudioEvent
impl PartialEq for AudioEvent
impl StructuralPartialEq for AudioEvent
Auto Trait Implementations§
impl Freeze for AudioEvent
impl RefUnwindSafe for AudioEvent
impl Send for AudioEvent
impl Sync for AudioEvent
impl Unpin for AudioEvent
impl UnsafeUnpin for AudioEvent
impl UnwindSafe for AudioEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more