clearCollision(clearGroup, clearMask, shape)
Clears the collision data from the shapes in this Body. Optionally clears Group and/or Mask.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
clearGroup | boolean | <optional> | true | Clear the collisionGroup value from the shape/s? |
clearMask | boolean | <optional> | true | Clear the collisionMask value from the shape/s? |
shape | p2.Shape | <optional> | An optional Shape. If not provided the collision data will be cleared from all Shapes in this Body. |
- Source code: physics/p2/Body.js (Line 323)
Please login to continue.