setType(id)
Tiles cannot collide with the world bounds, it's up to you to keep them where you want them. But we need this API stub to satisfy the Body.
Parameters
Name | Type | Description |
---|---|---|
id | number | The type of Tile this will use, i.e. Phaser.Physics.Ninja.Tile.SLOPE_45DEGpn, Phaser.Physics.Ninja.Tile.CONVEXpp, etc. |
- Source code: physics/ninja/Tile.js (Line 268)
Please login to continue.