# Matter physics collision detection

**URL:** <https://phaser.discourse.group/t/matter-physics-collision-detection/4423>\
**Category:** Phaser 3\
**Created:** [November 30, 2019, 10:16am UTC](https://phaser.discourse.group/t/matter-physics-collision-detection/4423 "2019-11-30T10:16:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fselcukcan](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@fselcukcan](https://phaser.discourse.group/u/fselcukcan)\
**Post date:** [November 30, 2019, 10:16am UTC](https://phaser.discourse.group/t/matter-physics-collision-detection/4423/1 "2019-11-30T10:16:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![smjn](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/smjn/32/2087_2.png) [@smjn](https://phaser.discourse.group/u/smjn)\
**Post date:** [November 30, 2019, 8:45pm UTC](https://phaser.discourse.group/t/matter-physics-collision-detection/4423/2 "2019-11-30T20:45:40Z")

</div>

This tutorial is exactly what you are looking for.

> **[Modular Game Worlds in Phaser 3 (Tilemaps #5) - Matter Physics Platformer](https://itnext.io/modular-game-worlds-in-phaser-3-tilemaps-5-matter-physics-platformer-d14d1f614557)**
>
> Making a puzzle-y Matter.js platformer

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.
