Struct VegetationInstanceState
pub struct VegetationInstanceState {
pub base_transform: [[f32; 4]; 4],
pub semantic_id: u64,
pub height: f32,
pub current_bend_offset: [f32; 2],
pub current_bend_velocity: [f32; 2],
}Expand description
Persistent state for a single vegetation instance in the pool.
Fields§
§base_transform: [[f32; 4]; 4]§semantic_id: u64§height: f32§current_bend_offset: [f32; 2]§current_bend_velocity: [f32; 2]Implementations§
Trait Implementations§
§impl Clone for VegetationInstanceState
impl Clone for VegetationInstanceState
§fn clone(&self) -> VegetationInstanceState
fn clone(&self) -> VegetationInstanceState
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 VegetationInstanceState
§impl Debug for VegetationInstanceState
impl Debug for VegetationInstanceState
§impl PartialEq for VegetationInstanceState
impl PartialEq for VegetationInstanceState
impl StructuralPartialEq for VegetationInstanceState
Auto Trait Implementations§
impl Freeze for VegetationInstanceState
impl RefUnwindSafe for VegetationInstanceState
impl Send for VegetationInstanceState
impl Sync for VegetationInstanceState
impl Unpin for VegetationInstanceState
impl UnsafeUnpin for VegetationInstanceState
impl UnwindSafe for VegetationInstanceState
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