createParticles
Create a particle effect.
Syntax
engine.effects.createParticles(options, withId);
Parameters
Name | Type | Description |
---|---|---|
options (optional) | ParticlesOptions | The options for the particles effect. |
withId (optional) | string | The ID of the particles effect. |
Returns
ParticlesManager
- The particles manager.
Example
const particles = engine.effects.createParticles({
position: [0, 2, 0],
amount: 50,
});
Available on: Client