# Matter-js pysics and events without collisions

**URL:** <https://phaser.discourse.group/t/matter-js-pysics-and-events-without-collisions/4404>\
**Category:** Phaser 3\
**Created:** [November 28, 2019, 8:08pm UTC](https://phaser.discourse.group/t/matter-js-pysics-and-events-without-collisions/4404 "2019-11-28T20:08:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jilonor](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jilonor](https://phaser.discourse.group/u/jilonor)\
**Post date:** [November 28, 2019, 8:08pm UTC](https://phaser.discourse.group/t/matter-js-pysics-and-events-without-collisions/4404/1 "2019-11-28T20:08:26Z")

</div>

Hello there.

I have started a project on phaser 3 recently and I selected matter-js as the physics engine because arcade has its limits.

what I want to do:

- Create a layer with objects on a tilemap:  
`const map = this.make.tilemap({ key: "map" });`  
`const objects = map.addTilesetImage("waterObjects", "waterObjectsTiles");`  
`var current = map.createStaticLayer("waterObjects", objects , 0, 0);`

- trigger events everytime the player “collides” with an element from this layer. But I don’t want the player body to be impacted by it. Some sort of ghost collision.

at least find a way to detect if the player is overlapping with an element of the layer.

Thank you

---

<div class="post-metadata">

**Author:** ![jilonor](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jilonor](https://phaser.discourse.group/u/jilonor)\
**Post date:** [November 30, 2019, 12:10pm UTC](https://phaser.discourse.group/t/matter-js-pysics-and-events-without-collisions/4404/2 "2019-11-30T12:10:43Z")

</div>

I guess I will just use getTileAtWorldXY(x, y) until I find a way to use collision sensors in matter-js

---

<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:42pm UTC](https://phaser.discourse.group/t/matter-js-pysics-and-events-without-collisions/4404/3 "2019-11-30T20:42:17Z")

</div>

Here is an example that creates sensors  
[https://labs.phaser.io/edit.html?src=src\physics\matterjs\compound%20sensors.js](https://labs.phaser.io/edit.html?src=src%5Cphysics%5Cmatterjs%5Ccompound%20sensors.js)
