playParticlesAtPosition
Play a particle effect at a specific position.
Syntax
engine.effects.playParticlesAtPosition(position, options, withId);
Parameters
Name | Type | Description |
---|---|---|
position | Vector3Array or Vector3 | The position to play the particles at. |
options | ParticlesOptions | The options for the particles to create. |
withId | string | The ID of the particles effect to create. (optional) |
Returns
ParticlesManager
- The particles manager.
Example
const particles = engine.audio.playParticlesAtLocation([0, 2, 0], {
amount: 50,
});
Available on: Client