Physics.P2.Body#clearCollision()

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)
doc_phaser
2017-02-14 11:01:54
Comments
Leave a Comment

Please login to continue.