setBoundsToWorld(left, right, top, bottom, setCollisionGroup)
Sets the bounds of the Physics world to match the Game.World dimensions.
You can optionally set which 'walls' to create: left, right, top or bottom.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
left | boolean | <optional> | true | If true will create the left bounds wall. |
right | boolean | <optional> | true | If true will create the right bounds wall. |
top | boolean | <optional> | true | If true will create the top bounds wall. |
bottom | boolean | <optional> | true | If true will create the bottom bounds wall. |
setCollisionGroup | boolean | <optional> | true | If true the Bounds will be set to use its own Collision Group. |
- Source code: physics/p2/World.js (Line 552)
Please login to continue.