setWorldMaterial(material, left, right, top, bottom)
Sets the given material against the 4 bounds of this World.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
material | Phaser.Physics.P2.Material | The material to set. | ||
left | boolean | <optional> | true | If true will set the material on the left bounds wall. |
right | boolean | <optional> | true | If true will set the material on the right bounds wall. |
top | boolean | <optional> | true | If true will set the material on the top bounds wall. |
bottom | boolean | <optional> | true | If true will set the material on the bottom bounds wall. |
- Source code: physics/p2/World.js (Line 569)
Please login to continue.