class

PointClickEngine::Graphics::Effects::ParticleEffect

Inherits PointClickEngine::Graphics::Effects::Effect < Reference < Object

Particle effect that can be attached to objects or scenes

Constructors

custom(config : Particles::EmitterConfig, duration : Float32 = 0.0_f32, follow_target : Bool = true) : ParticleEffect

Constructor for custom particle effects

Source
new(particle_type : ParticleType, duration : Float32 = 0.0_f32, follow_target : Bool = true)
Source

Instance methods

apply(context : EffectContext)

Apply effect to target (implemented by subclasses)

Source
burst(count : Int32 | Nil = nil)

Trigger a burst emission

Source
clear_particles

Clear all particles immediately

Source
custom_config

Custom emitter config

Source
custom_config=(custom_config : Particles::EmitterConfig | Nil)

Set custom emitter configuration

Source
emitter
Source
follow_target
Source
follow_target=(follow_target : Bool)
Source
offset
Source
offset=(offset : RL::Vector2)
Source
particle_type
Source
reset

Reset effect to start

Source
stop_emitting

Stop emitting new particles (existing ones continue)

Source
update(dt : Float32)

Update effect state

Source

Nested types