Skip to content

anim-format (runtime format) / evaluateParticles

Function: evaluateParticles() ​

ts
function evaluateParticles(
   cfg, 
   t, 
   out?, 
   poseAt?
): ParticleFrame;

Every particle alive at emitter time t (seconds; fractions for force smooth sub-frames). Local space = positions in the emitter's own space; world space = in its parent's, using poseAt(birth time) for where the emitter was when each particle left it (default: the identity, i.e. the emitter never moved).

Parameters ​

ParameterType
cfgParticleConfig
tnumber
out?ParticleFrame
poseAt?EmitterPoseAt

Returns ​

ParticleFrame

HereSplash — 2D animation for the web