pub struct PathEmitter(/* private fields */);Expand description
An arc-length path source inheriting its tangent direction.
Implementations§
Source§impl PathEmitter
impl PathEmitter
Sourcepub fn rate(self, rate: f64) -> Self
pub fn rate(self, rate: f64) -> Self
Replaces particles/second; constant schedules quantize to step boundaries.
Sourcepub fn rate_animation(self, rate: impl Signal<f64> + 'static) -> Self
pub fn rate_animation(self, rate: impl Signal<f64> + 'static) -> Self
Uses seeded stochastic fractional births at each fixed step; its expected birth count follows the animation, without hidden cursors.
Sourcepub fn speed(self, speed: f64) -> Self
pub fn speed(self, speed: f64) -> Self
Replaces isotropic launch speed (path sources use path tangents).
Sourcepub fn velocity(self, velocity: Vector2) -> Self
pub fn velocity(self, velocity: Vector2) -> Self
Adds a fixed design-unit velocity to the sampled launch direction.
Sourcepub fn depth_range(self, minimum: f32, maximum: f32) -> Self
pub fn depth_range(self, minimum: f32, maximum: f32) -> Self
Samples depth into custom[1]; a constant range consumes no random draw.
Trait Implementations§
Source§impl Clone for PathEmitter
impl Clone for PathEmitter
Source§impl ParticleEmitter for PathEmitter
impl ParticleEmitter for PathEmitter
Source§fn emit(
&self,
step: u64,
time: Time,
random: &mut Random,
output: &mut Vec<Particle>,
) -> Result<(), ValidationError>
fn emit( &self, step: u64, time: Time, random: &mut Random, output: &mut Vec<Particle>, ) -> Result<(), ValidationError>
Appends births at this exact fixed-step boundary.
Source§fn accepts_event(&self, _: &ParticleEvent) -> bool
fn accepts_event(&self, _: &ParticleEvent) -> bool
Filters event-triggered births. Root emission is unaffected; ordinary emitters accept all events.
Auto Trait Implementations§
impl !RefUnwindSafe for PathEmitter
impl !UnwindSafe for PathEmitter
impl Forget for PathEmitter
impl Freeze for PathEmitter
impl Move for PathEmitter
impl Send for PathEmitter
impl Sync for PathEmitter
impl Unpin for PathEmitter
impl UnsafeUnpin for PathEmitter
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