pub enum VelocityInit {
Constant([f32; 3]),
RandomRange {
min: [f32; 3],
max: [f32; 3],
},
ImpulseFromEventNormal {
scale: f32,
},
ConeDirection {
direction: [f32; 3],
spread_angle: f32,
speed: f32,
},
}Expand description
Initial velocity distribution.
Variants§
Trait Implementations§
Source§impl Clone for VelocityInit
impl Clone for VelocityInit
Source§fn clone(&self) -> VelocityInit
fn clone(&self) -> VelocityInit
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 VelocityInit
impl Debug for VelocityInit
Source§impl<'de> Deserialize<'de> for VelocityInit
impl<'de> Deserialize<'de> for VelocityInit
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 VelocityInit
impl RefUnwindSafe for VelocityInit
impl Send for VelocityInit
impl Sync for VelocityInit
impl Unpin for VelocityInit
impl UnsafeUnpin for VelocityInit
impl UnwindSafe for VelocityInit
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