Static Member Summary
| Static Public Members | ||
| public static get |
propsTypes: {...undefined: Object, "gravity": string, "doSleep": string, "iterations": string, "timeScale": string} |
|
Static Method Summary
| Static Public Methods | ||
| public static |
factory(): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
doSleep: * |
|
| public set |
|
|
| public get |
gravity: * |
|
| public set |
|
|
| public get |
iterations: * |
|
| public set |
|
|
| public get |
timeScale: * |
|
| public set |
|
|
| public get |
world: * |
|
Method Summary
| Public Methods | ||
| public |
dispose() |
|
| public |
onAttach() |
|
| public |
onBeginContact(contact: *) |
|
| public |
onDetach() |
|
| public |
onEndContact(contact: *) |
|
| public |
onUpdate(deltaTime: *) |
|
| public |
rayCast(callback: *, startX: *, startY: *, endX: *, endY: *) |
|
| public |
rayCastAll(startX: *, startY: *, endX: *, endY: *): * |
|
| public |
rayCastOne(startX: *, startY: *, endX: *, endY: *): * |
|
Inherited Summary
| From class Component | ||
| public static get |
propsTypes: * |
|
| public static |
Component factory. |
|
| public get |
|
|
| public |
[name]: * |
|
| public |
deserialize(json: *) Deserialize JSON properties into this component. |
|
| public |
dispose() Destructor (dispose internal resources and detach from entity). |
|
| public |
Called when action arrived. |
|
| public |
onAlterActionArguments(name: string, args: *): array | undefined Called when asked to alter arrived action parameters. |
|
| public |
onAttach() Called after attached to entity. |
|
| public |
onDetach() Called before detached from entity. |
|
| public |
onPropertySerialize(name: string, value: *): * Called when property is serialized. |
|
| public |
onPropertySetup(name: string, value: *) Called when given property is deserialized. |
|
| public |
serialize(): * Serialize component into JSON data. |
|
| From class Script | ||
| public static get |
EventFlags: * |
|
| public static get |
propsTypes: {"listenTo": *} |
|
| public static |
factory(): * |
|
| public get |
listenTo: * |
|
| public set |
|
|
| public |
dispose() |
|
| public |
onAction(name: *, args: ...*): * |
|
| public |
onAttach() |
|
| public |
onContactBegin(body: *, contact: *) |
|
| public |
onContactEnd(body: *, contact: *) |
|
| public |
onDetach() |
|
| public |
onGamepadConnected(gamepad: *) |
|
| public |
onGamepadDisconnected(gamepad: *) |
|
| public |
onGamepadProcess(gamepad: *) |
|
| public |
onKeyDown(code: *) |
|
| public |
onKeyUp(code: *) |
|
| public |
onMouseDown(unitVec: *, screenVec: *, button: *) |
|
| public |
onMouseMove(unitVec: *, screenVec: *) |
|
| public |
onMouseUp(unitVec: *, screenVec: *, button: *) |
|
| public |
onPreview(gl: *, renderer: *, deltaTime: *) |
|
| public |
onPropertySerialize(name: *, value: *): * |
|
| public |
onPropertySetup(name: *, value: *) |
|
| public |
onRender(gl: *, renderer: *, deltaTime: *, layer: *) |
|
| public |
onRenderLayer(gl: *, renderer: *, deltaTime: *, layer: *) |
|
| public |
onTouchDown(unitVec: *, screenVec: *, identifier: *) |
|
| public |
onTouchMove(unitVec: *, screenVec: *, identifier: *) |
|
| public |
onTouchUp(unitVec: *, screenVec: *, identifier: *) |
|
| public |
onUpdate(deltaTime: *) |
|
Static Public Members
Static Public Methods
Public Constructors
Public Members
public get doSleep: * source
public set doSleep source
public get gravity: * source
public set gravity source
public get iterations: * source
public set iterations source
public get timeScale: * source
public set timeScale source
public get world: * source
Public Methods
public dispose() source
Destructor (dispose internal resources and detach from entity).
Override:
Script#disposepublic onBeginContact(contact: *) source
Params:
| Name | Type | Attribute | Description |
| contact | * |
public onEndContact(contact: *) source
Params:
| Name | Type | Attribute | Description |
| contact | * |
public onUpdate(deltaTime: *) source
Override:
Script#onUpdateParams:
| Name | Type | Attribute | Description |
| deltaTime | * |
public rayCast(callback: *, startX: *, startY: *, endX: *, endY: *) source
Params:
| Name | Type | Attribute | Description |
| callback | * | ||
| startX | * | ||
| startY | * | ||
| endX | * | ||
| endY | * |
public rayCastAll(startX: *, startY: *, endX: *, endY: *): * source
Params:
| Name | Type | Attribute | Description |
| startX | * | ||
| startY | * | ||
| endX | * | ||
| endY | * |
Return:
| * |
public rayCastOne(startX: *, startY: *, endX: *, endY: *): * source
Params:
| Name | Type | Attribute | Description |
| startX | * | ||
| startY | * | ||
| endX | * | ||
| endY | * |
Return:
| * |
