Type Definitions
CircleJSON
json object to configure Circle
of https://www.npmjs.com/package/detect-collisions
Type:
Properties- object
Name | Type | Description |
---|---|---|
type | string | to identify this is a Circle must be equal to "Circle" |
center | Object | center of the circle |
radius | number | radius of the circle |
- Source
CommandCallback(data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
data | object | command data |
- Source
Returns:
if true the command is removed from context.commands
- Type:
- boolean
ContextListener(params)
Parameters:
Name | Type | Description |
---|---|---|
params | * | params pass when event is dispatched |
- Source
Object3DCondition(object) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
object | Object3D | object3d to test |
- Source
Returns:
- true object3d match condition
- Type:
- boolean
PolygonJSON
json object to configure Polygon
of https://www.npmjs.com/package/detect-collisions
Type:
Properties- object
Name | Type | Description |
---|---|---|
type | string | to identify this is a Polygon must be equal to "Polygon" |
points | Array.<{x, y}> | points of the polygon |
- Source
ScriptParams
Type:
Properties- object
Name | Type | Description |
---|---|---|
id | string | id of the script |
priority | number | influence order in which scripts are executed |
- Source
TraverseCallback(object3D)
Parameters:
Name | Type | Description |
---|---|---|
object3D | Object3D | the object3D traversed |
- Source