Physics.P2#onEndContact

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.