pub struct EmitterDesc {
pub particle: ParticleDesc,
pub motion: ParticleMotion,
pub shape: SpawnShape,
pub velocity_cone: Option<DirectionCone>,
pub velocity_jitter: [f32; 3],
pub lifetime_jitter: f32,
pub size_jitter: f32,
pub rotation_jitter: f32,
pub inherit_velocity: f32,
pub rate: f32,
pub max_per_update: u16,
}Fields§
§particle: ParticleDesc§motion: ParticleMotion§shape: SpawnShape§velocity_cone: Option<DirectionCone>§velocity_jitter: [f32; 3]§lifetime_jitter: f32Fractional symmetric jitter. Lifetime jitter is limited to 0..=0.95.
size_jitter: f32§rotation_jitter: f32§inherit_velocity: f32§rate: f32§max_per_update: u16Maximum samples attempted by each update or burst call. Separate calls
do not share a budget; use Emitter::burst_with_budget to lower it.
Implementations§
Source§impl EmitterDesc
impl EmitterDesc
pub fn validate(&self) -> Result<(), ParticleError>
Trait Implementations§
Source§impl Clone for EmitterDesc
impl Clone for EmitterDesc
Source§fn clone(&self) -> EmitterDesc
fn clone(&self) -> EmitterDesc
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 EmitterDesc
impl Debug for EmitterDesc
Source§impl Default for EmitterDesc
impl Default for EmitterDesc
Source§fn default() -> EmitterDesc
fn default() -> EmitterDesc
Returns the “default value” for a type. Read more
Source§impl PartialEq for EmitterDesc
impl PartialEq for EmitterDesc
impl Copy for EmitterDesc
impl StructuralPartialEq for EmitterDesc
Auto Trait Implementations§
impl Freeze for EmitterDesc
impl RefUnwindSafe for EmitterDesc
impl Send for EmitterDesc
impl Sync for EmitterDesc
impl Unpin for EmitterDesc
impl UnwindSafe for EmitterDesc
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