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