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§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.