pub struct InitPolicy {
pub velocity: VelocityInit,
pub angular_velocity_range: Option<([f32; 3], [f32; 3])>,
pub color: [f32; 4],
pub color_random: bool,
pub scale_range: ([f32; 2], [f32; 2]),
pub mass_range: (f32, f32),
}Expand description
Init policy — particle initialization parameters.
Fields§
§velocity: VelocityInit§angular_velocity_range: Option<([f32; 3], [f32; 3])>§color: [f32; 4]§color_random: bool§scale_range: ([f32; 2], [f32; 2])§mass_range: (f32, f32)Trait Implementations§
Source§impl Clone for InitPolicy
impl Clone for InitPolicy
Source§fn clone(&self) -> InitPolicy
fn clone(&self) -> InitPolicy
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 moreSource§impl Debug for InitPolicy
impl Debug for InitPolicy
Source§impl Default for InitPolicy
impl Default for InitPolicy
Source§impl<'de> Deserialize<'de> for InitPolicy
impl<'de> Deserialize<'de> for InitPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InitPolicy
impl RefUnwindSafe for InitPolicy
impl Send for InitPolicy
impl Sync for InitPolicy
impl Unpin for InitPolicy
impl UnsafeUnpin for InitPolicy
impl UnwindSafe for InitPolicy
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