Particle System
This example shows a simple particle system. It uses instanced sprites to render the particles.
emitter: { maxParticles: 1000, maxEmitRate: 200, minEmitRate: 50 },
initializers: {
ttl: 1,
position: () => vec3.fromValues(0, 0, 0),
velocity: () => vec3.fromValues(0, 0.02, 0),
},
behaviours: {
force: () => vec3.fromValues(0, -0.02, 0),
},
});
this.world.createEntity([
particles,
]);