Physics.P2.Body#onEndContact

onEndContact : Phaser.Signal

Dispatched when contact ends between shapes in two bodies.
This event is fired during the step, so collision has already taken place.

The event will be sent 4 arguments in this order:

The Phaser.Physics.P2.Body it is in contact with. This might be null if the Body was created directly in the p2 world.
The p2.Body this Body has ended contact with.
The Shape from this body that caused the original contact.
The Shape from the contact body.

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

Please login to continue.