Position
Extends:
Sets the starting position property for initialized particles. This is derived from a zone randomly chosen from those supplied to the constructor.
Static Method Summary
Static Public Methods | ||
public static |
Creates a Position initializer from JSON. |
Constructor Summary
Public Constructor | ||
public |
constructor(): * Constructs a Position initializer instance. |
Member Summary
Public Members | ||
public |
zones: *[] |
Method Summary
Public Methods | ||
public |
addZone(): * Adds a zone or zones to this.zones. |
|
public |
reset(): * Resets the initializer 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() |
Static Public Methods
Public Constructors
public constructor(): * source
Constructs a Position initializer instance.
Override:
Initializer#constructorReturn:
* | void |
Public Members
public zones: *[] source
Public Methods
public reset(): * source
Resets the initializer properties. Clears all previously set zones and resets the zones according to args passed.
Override:
Initializer#resetReturn:
* | void |