Constructor
new Box2dTileLayer(tileLayer)
Create a Box2d tile layer object
Parameters:
| Name | Type | Description |
|---|---|---|
tileLayer | TileCollisionLayer | Tile layer for this object |
- Source
Extends
- Box2dObject
Members
tileLayer
Properties| Type | Description |
|---|---|
| TileLayer | The tile layer |
- Source
Methods
buildCollision(frictionopt, restitutionopt)
Create box2d collision fixtures for solid tiles
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
friction | number | <optional> | 0.2 | |
restitution | number | <optional> | 0 |
- Source