# Arcade Physics and Custom Collision Boxes for TileMap

**URL:** <https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910>\
**Category:** Phaser 3\
**Created:** [July 7, 2021, 10:59am UTC](https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910 "2021-07-07T10:59:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurkensalat123](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@Gurkensalat123](https://phaser.discourse.group/u/Gurkensalat123)\
**Post date:** [July 7, 2021, 10:59am UTC](https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910/1 "2021-07-07T10:59:25Z")

</div>

Hi,  
I know this gets asked alot but I dont find any clear and definit answer in how to handle this with Phaser3. I use Tiled for creating my TileMap. The TileMap itself consists of two layers: one visual layer and one collision layer. With the standard Arcade Physics everything works as “expected” with the caveat that the collider size is the same as the tile size e.g 32px x 32 px. Unfortunately some tiles aren’t completly filled which means sometimes I need the collider to be something like 32px x 16px.

Simple question: Is this somehow possible with Arcade Physics or do I need something like Matter.js so that I can define collider sizes myself ?

Thank you !

---

<div class="post-metadata">

**Author:** ![BlunT76](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/blunt76/32/1454_2.png) [@BlunT76](https://phaser.discourse.group/u/BlunT76)\
**Post date:** [July 7, 2021, 11:21am UTC](https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910/2 "2021-07-07T11:21:09Z")

</div>

Hi,  
You can’t change the body size of tiles.  
I don’t know if matter can do this.  
But another solution is to use 16px x 16px with arcade, so you can define the collision more accuratly

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 7, 2021, 2:46pm UTC](https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910/3 "2021-07-07T14:46:19Z")

</div>

You can convert tiles to sprites with `createFromTiles()` and then resize Arcade Physics bodies.

---

<div class="post-metadata">

**Author:** ![Gurkensalat123](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@Gurkensalat123](https://phaser.discourse.group/u/Gurkensalat123)\
**Post date:** [July 8, 2021, 11:38am UTC](https://phaser.discourse.group/t/arcade-physics-and-custom-collision-boxes-for-tilemap/9910/4 "2021-07-08T11:38:59Z")

</div>

Thank you guys, I will try it.
