ParticleComponent

ParticleComponent

Creates and modifies MeshData to simulate particle effects.

ParticleComponents may have one or
more emitters. Each emitter spawns particles, controlling spawn rate, lifetime, initial velocity vector and
position of each particle. Each Particle System also contains a timeline describing changes each particle should
perform over its lifetime, including:

  • Size of particle
  • Color of particle
  • Orientation of particle (rotation on screen plane)
  • Texture coords used.
  • Other user defined params.



External influences can exert on particles via a defined callback function system.


Particles billboard toward the screen using a provided Camera as reference.

Constructor

new ParticleComponent(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Default Description
emitters Array <optional>

Array of emitter settings

timeline Array <optional>
uRange number <optional>
1
vRange number <optional>
1
particleCount number <optional>
100