pub struct PointEmitter(/* private fields */);Expand description
A point source with stable fixed-boundary births.
Implementations§
Source§impl PointEmitter
impl PointEmitter
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 PointEmitter
impl Clone for PointEmitter
Source§impl ParticleEmitter for PointEmitter
impl ParticleEmitter for PointEmitter
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 PointEmitter
impl !UnwindSafe for PointEmitter
impl Forget for PointEmitter
impl Freeze for PointEmitter
impl Move for PointEmitter
impl Send for PointEmitter
impl Sync for PointEmitter
impl Unpin for PointEmitter
impl UnsafeUnpin for PointEmitter
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