Physics.P2.Body#updateCollisionMask()

updateCollisionMask(shape)

Updates the collisionMask.

Parameters
Name Type Argument Description
shape p2.Shape <optional>

An optional Shape. If not provided the collision group will be added to all Shapes in this Body.

Source code: physics/p2/Body.js (Line 271)
doc_phaser
2017-02-14 11:02:31
Comments
Leave a Comment

Please login to continue.