AbstractOptionalps: ParticleSystemReference to the particle system this behavior belongs to
Behavior type identifier used by three.quarks
Access to the engine context for timing, input, etc.
Called once per frame before particle updates. Use for shared calculations.
Called once when a particle is spawned. Use to initialize per-particle state.
Called when the particle system is reset.
Called every frame for each active particle. Use to update particle properties.
Base class for custom particle behaviors. Extend this to create custom particle logic.
Override
initialize()to set up per-particle state when particles spawn.Override
update()to modify particles each frame (position, velocity, color, size, etc.).Override
frameUpdate()for logic that runs once per frame (not per particle).Example: Custom wind effect
See
ParticleSystem.addBehaviour to register your custom behavior
Link
https://github.com/Alchemist0823/three.quarks