Constructor
(abstract) new Modifier(configopt)
- Description:
- Initializes a modifier.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
config |
ModifierConfig |
<optional> |
{}
|
Configuration parameters. |
Throws:
TypeError
Classes
Members
id :string
- Description:
- Unique identifier. Defaults to a generated UUID.
- Source:
Unique identifier. Defaults to a generated UUID.
Type:
- string
Methods
(abstract) update(_particle, _normalizedAge) → {void}
- Description:
- Applies visual or lifecycle changes to a particle based on its normalized age.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
_particle |
Particle | Particle instance to affect. |
_normalizedAge |
number | Normalized age of the particle (0.0 = emitted, 1.0 = dead). |
Throws:
Error
Returns:
- Type
- void