updateBoundsCollisionGroup(setCollisionGroup)
By default the World will be set to collide everything with everything. The bounds of the world is a Body with 4 shapes, one for each face.
If you start to use your own collision groups then your objects will no longer collide with the bounds.
To fix this you need to adjust the bounds to use its own collision group first BEFORE changing your Sprites collision group.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
setCollisionGroup | boolean | <optional> | true | If true the Bounds will be set to use its own Collision Group. |
- Source code: physics/p2/World.js (Line 608)
Please login to continue.