Constructor
(package) new EmitterOptions(dataopt)
Creates a new object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Object |
<optional> |
Settings for particles. |
- Source:
Members
acceleration :rune.geom.Point
Force (in x- and y-direction) that represents the acceleration of
particles, i.e. their increasing speed of movement.
Type:
- Source:
capacity :number
The emitter's capacity, i.e. the maximum number of particles it can
handle.
Type:
- number
- Source:
drag :rune.geom.Point
Force (in x- and y-direction) that counteracts the particles' velocity,
i.e. slows down their speed of movement.
Type:
- Source:
maxLifespan :number
The maximum lifetime of a particle (in milliseconds).
Type:
- number
- Source:
maxRotation :number
A particle's maximum angular velocity.
Type:
- number
- Source:
maxVelocity :rune.geom.Point
A particle's maximum velocity.
Type:
- Source:
minLifespan :number
The minimum lifetime of a particle (in milliseconds).
Type:
- number
- Source:
minRotation :number
A particle's minimum angular velocity.
Type:
- number
- Source:
minVelocity :rune.geom.Point
A particle's minimum velocity.
Type:
- Source:
particles :Array.<function()>
A list of classes to use as particles. When a new particle is to be
created, a random class is chosen from this list. Note that the list
contains references to classes, not instantiated objects.
Type:
- Array.<function()>
- Source: