pub struct WindSystem {
pub base_wind: Vec2,
pub gustiness: f32,
pub turbulence: f32,
pub current_wind: Vec2,
/* private fields */
}Expand description
Models global wind for vegetation animation.
Fields§
§base_wind: Vec2Base wind direction and strength.
gustiness: f32Wind gustiness [0, 1]: how much the wind varies.
turbulence: f32Wind turbulence frequency.
current_wind: Vec2Current resolved wind vector.
Implementations§
Trait Implementations§
Source§impl Clone for WindSystem
impl Clone for WindSystem
Source§fn clone(&self) -> WindSystem
fn clone(&self) -> WindSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WindSystem
impl RefUnwindSafe for WindSystem
impl Send for WindSystem
impl Sync for WindSystem
impl Unpin for WindSystem
impl UnsafeUnpin for WindSystem
impl UnwindSafe for WindSystem
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