Matter physics collision detection

I wonder how to use collisions detections with Phaser 3 with matter physics. Specifically,
1- how to detect who is colliding with who? For example, when you have a player and you want to see if it is colliding with world boundaries, or other objects, or groups of objects?
2- how to tell a group can collide with another group and detect when it did?

This tutorial is exactly what you are looking for.

It also includes a plugin that makes life a lot easier when using matter and collision callbacks. Read the earlier parts of the tutorial as well, all very good.

1 Like