Interface: ParticleSnapshot
Defined in: src/mobjects/particles/ParticleSystem.ts:53
A snapshot of one living particle, returned by ParticleSystem.getParticles. The arrays are copies, so a caller cannot mutate the internal state.
Properties
age
age:
number
Defined in: src/mobjects/particles/ParticleSystem.ts:59
Age in seconds since the particle was spawned.
color
color:
string
Defined in: src/mobjects/particles/ParticleSystem.ts:65
Current color, interpolated from startColor to endColor over the life.
lifetime
lifetime:
number
Defined in: src/mobjects/particles/ParticleSystem.ts:61
Total lifetime in seconds. The particle dies when age > lifetime.
position
position:
Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:55
Current position [x, y, z].
size
size:
number
Defined in: src/mobjects/particles/ParticleSystem.ts:63
Current size, interpolated from startSize to endSize over the life.
velocity
velocity:
Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:57
Current velocity [x, y, z] in units/sec.