pub struct WeatherEffect {
pub intensity: f32,
pub direction: f32,
}Expand description
A weather effect slot: its particle geometry and its ambient sound. Slot 0 is rain, slot 1 is snow (the order of the environment’s weather list).
Fields§
§intensity: f32geometry: 0..1, also the ambient emitter’s volume.
direction: f32geometry: +1 fading in, −1 fading out.
Trait Implementations§
Source§impl Clone for WeatherEffect
impl Clone for WeatherEffect
Source§fn clone(&self) -> WeatherEffect
fn clone(&self) -> WeatherEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WeatherEffect
Source§impl Debug for WeatherEffect
impl Debug for WeatherEffect
Source§impl PartialEq for WeatherEffect
impl PartialEq for WeatherEffect
impl StructuralPartialEq for WeatherEffect
Auto Trait Implementations§
impl Freeze for WeatherEffect
impl RefUnwindSafe for WeatherEffect
impl Send for WeatherEffect
impl Sync for WeatherEffect
impl Unpin for WeatherEffect
impl UnsafeUnpin for WeatherEffect
impl UnwindSafe for WeatherEffect
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