Struct VegetationBendingParams
pub struct VegetationBendingParams {
pub stiffness: f32,
pub recovery_rate: f32,
pub max_bend_angle: f32,
pub wind_direction: [f32; 2],
pub wind_strength: f32,
}Expand description
Physical parameters controlling vegetation stiffness, recovery, and wind reaction.
Fields§
§stiffness: f32Elastic resistance to bending (0.0 = completely limp, 1.0 = rigid).
recovery_rate: f32Recovery rate towards rest position per second (e.g. 5.0 to 10.0).
max_bend_angle: f32Maximum bend angle in radians (e.g. 1.2 rad ~ 70 deg).
wind_direction: [f32; 2]Authoritative horizontal wind direction vector [x, z].
wind_strength: f32Wind strength multiplier.
Trait Implementations§
§impl Clone for VegetationBendingParams
impl Clone for VegetationBendingParams
§fn clone(&self) -> VegetationBendingParams
fn clone(&self) -> VegetationBendingParams
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 VegetationBendingParams
§impl Debug for VegetationBendingParams
impl Debug for VegetationBendingParams
§impl Default for VegetationBendingParams
impl Default for VegetationBendingParams
§fn default() -> VegetationBendingParams
fn default() -> VegetationBendingParams
Returns the “default value” for a type. Read more
§impl PartialEq for VegetationBendingParams
impl PartialEq for VegetationBendingParams
impl StructuralPartialEq for VegetationBendingParams
Auto Trait Implementations§
impl Freeze for VegetationBendingParams
impl RefUnwindSafe for VegetationBendingParams
impl Send for VegetationBendingParams
impl Sync for VegetationBendingParams
impl Unpin for VegetationBendingParams
impl UnsafeUnpin for VegetationBendingParams
impl UnwindSafe for VegetationBendingParams
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