Rate
Extends:
Calculates the rate of particle emission.
NOTE This doesn't need to be an initializer, it doesn't have an initialize method, it overrides the base init method and it is only relevent to the Emitter class. It would be better to move this to the Emitter module itself as a standalone class.
Static Method Summary
Static Public Methods | ||
public static |
Creates a Rate initializer from JSON. |
Constructor Summary
Public Constructor | ||
public |
constructor(numPan: number | array | Span, timePan: number | array | Span): * Constructs a Rate instance. |
Member Summary
Public Members | ||
public |
The rate's next time. |
|
public |
Sets the number of particles to emit. |
|
public |
The rate's start time. |
|
public |
Sets the time between each particle emission. |
Method Summary
Public Methods | ||
public |
Gets the number of particles to emit. |
|
public |
init(): * Sets the startTime and nextTime properties. |
Inherited Summary
From class Initializer | ||
public static abstract |
Returns a new instance of the initializer from the JSON object passed. |
|
public static |
Determines if the initializer requires a Web GL API to be provided to its constructor. |
|
public |
isEnabled: * |
|
public |
type: * |
|
public |
Initializes the property on the emitter or particle. |
|
public abstract |
initialize(target: object) Place custom property initialization code in this method in the subclass. |
|
public abstract |
reset() |