onEndContact : Phaser.Signal
This Signal is dispatched when final contact occurs between two bodies. This happens before the step has been done.
It sends 4 arguments: bodyA
, bodyB
, shapeA
and shapeB
.
It is possible that in certain situations the bodyA
or bodyB
values are null
. You should check for this
in your own code to avoid processing potentially null physics bodies.
- Source code: physics/p2/World.js (Line 194)
Please login to continue.