Static Member Summary
Static Public Members | ||
public static get |
ShapeType: * |
|
public static get |
propsTypes: {...undefined: Object, "applyPositionTo": string, "applyRotationTo": string, "applyPositionFrom": string, "applyRotationFrom": string, "bodyType": string, "radius": string, "vertices": string, "shapeType": string, "density": string, "friction": string, "restitution": string, "linearVelocity": string, "angularVelocity": string, "linearDamping": string, "angularDamping": string, "fixedRotation": string, "bullet": string, "sensor": string, "coordsScale": string, "listenForContacts": string} |
Static Method Summary
Static Public Methods | ||
public static |
factory(): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
body: * |
|
public get |
bodyType: * |
|
public set |
|
|
public get |
bullet: * |
|
public set |
|
|
public get |
coordsScale: * |
|
public set |
|
|
public get |
density: * |
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
fixture: * |
|
public get |
friction: * |
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public get |
|
|
public set |
|
|
public get |
mass: * |
|
public get |
radius: * |
|
public set |
|
|
public get |
restitution: * |
|
public set |
|
|
public get |
sensor: * |
|
public set |
|
|
public get |
shapeType: * |
|
public set |
|
|
public get |
vertices: * |
|
public set |
|
|
public get |
world: * |
Method Summary
Public Methods | ||
public |
applyForce(forceX: *, forceY: *, pointX: *, pointY: *, localSpace: boolean) |
|
public |
applyImpulse(forceX: *, forceY: *, pointX: *, pointY: *, localSpace: boolean) |
|
public |
applyTorque(value: *) |
|
public |
dispose() |
|
public |
onAttach() |
|
public |
onDetach() |
|
public |
onPropertySerialize(name: *, value: *): * |
|
public |
onUpdate(deltaTime: *) |
|
public |
|
|
public |
sleep() |
|
public |
wakeUp() |
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
public static get ShapeType: * source
public static get propsTypes: {...undefined: Object, "applyPositionTo": string, "applyRotationTo": string, "applyPositionFrom": string, "applyRotationFrom": string, "bodyType": string, "radius": string, "vertices": string, "shapeType": string, "density": string, "friction": string, "restitution": string, "linearVelocity": string, "angularVelocity": string, "linearDamping": string, "angularDamping": string, "fixedRotation": string, "bullet": string, "sensor": string, "coordsScale": string, "listenForContacts": string} source
Override:
Script#propsTypesStatic Public Methods
Public Constructors
Public Members
public get angularDamping: * source
public set angularDamping source
public get angularVelocity: * source
public set angularVelocity source
public get applyPositionFrom: * source
public set applyPositionFrom source
public get applyPositionTo: * source
public set applyPositionTo source
public get applyRotationFrom: * source
public set applyRotationFrom source
public get applyRotationTo: * source
public set applyRotationTo source
public get body: * source
public get bodyType: * source
public set bodyType source
public get bullet: * source
public set bullet source
public get coordsScale: * source
public set coordsScale source
public get density: * source
public set density source
public get fixedRotation: * source
public set fixedRotation source
public get fixture: * source
public get friction: * source
public set friction source
public get linearDamping: * source
public set linearDamping source
public get linearVelocity: * source
public set linearVelocity source
public get linearVelocityLength: * source
public get listenForContacts: * source
public set listenForContacts source
public get mass: * source
public get radius: * source
public set radius source
public get restitution: * source
public set restitution source
public get sensor: * source
public set sensor source
public get shapeType: * source
public set shapeType source
public get vertices: * source
public set vertices source
public get world: * source
Public Methods
public applyForce(forceX: *, forceY: *, pointX: *, pointY: *, localSpace: boolean) source
Params:
Name | Type | Attribute | Description |
forceX | * | ||
forceY | * | ||
pointX | * | ||
pointY | * | ||
localSpace | boolean |
|
public applyImpulse(forceX: *, forceY: *, pointX: *, pointY: *, localSpace: boolean) source
Params:
Name | Type | Attribute | Description |
forceX | * | ||
forceY | * | ||
pointX | * | ||
pointY | * | ||
localSpace | boolean |
|
public applyTorque(value: *) source
Params:
Name | Type | Attribute | Description |
value | * |
public dispose() source
Destructor (dispose internal resources and detach from entity).
Override:
Script#disposepublic onPropertySerialize(name: *, value: *): * source
Called when property is serialized.
Override:
Script#onPropertySerializeParams:
Name | Type | Attribute | Description |
name | * | ||
value | * |
Return:
* |
public onUpdate(deltaTime: *) source
Override:
Script#onUpdateParams:
Name | Type | Attribute | Description |
deltaTime | * |