Static Method Summary
| Static Public Methods | ||
| public static |
fromJSON(json: *): * |
|
Constructor Summary
| Public Constructor | ||
| public |
Constructs a Rotation property instance. |
|
Member Summary
| Public Members | ||
| public |
rotation: * |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
initialize(particle: Particle): * Sets the particle's initial rotation. |
|
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 static fromJSON(json: *): * source
Returns a new instance of the initializer from the JSON object passed.
Override:
Initializer#fromJSONParams:
| Name | Type | Attribute | Description |
| json | * |
Return:
| * |
Public Constructors
public constructor(x: number, y: number, z: number, useEmitterRotation: boolean, isEnabled: boolean): * source
Constructs a Rotation property instance.
Override:
Initializer#constructorParams:
| Name | Type | Attribute | Description |
| x | number | X axis rotation |
|
| y | number | Y axis rotation |
|
| z | number | Z axis rotation |
|
| useEmitterRotation | boolean |
|
Determines if we should use the emitter's rotation as the starting rotation |
| isEnabled | boolean |
|
Determines if the initializer should be enabled or not |
Return:
| * | void |
Public Methods
public initialize(particle: Particle): * source
Sets the particle's initial rotation.
Override:
Initializer#initializeParams:
| Name | Type | Attribute | Description |
| particle | Particle | the particle to initialize the property on |
Return:
| * | void |
