# Problem with collision editor

**URL:** <https://discourse.mapeditor.org/t/problem-with-collision-editor/1133>\
**Category:** Questions\
**Created:** [February 20, 2016, 10:16pm UTC](https://discourse.mapeditor.org/t/problem-with-collision-editor/1133 "2016-02-20T22:16:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pietro\_Moroni](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Pietro\_Moroni](https://discourse.mapeditor.org/u/Pietro_Moroni)\
**Post date:** [February 20, 2016, 10:16pm UTC](https://discourse.mapeditor.org/t/problem-with-collision-editor/1133/1 "2016-02-20T22:16:03Z")

</div>

I am making a tiled-based 2d platform game in unity.

Whenever I open the Tiled Collision Editor and drag de cursor across the tile sprite to create the collision box, I can’t manage to make it perfectly matched with the edges of the tile, so that when I import the map in unity (using Tiled2Unity) I am unable to have all the tiles perfectly joined as 1 single and, mostly important, precise collision box.

What I want to know is: is there a way to have the tile perfectly matched with it’s collision box?

I’m using the latest version of Tiled and am on a mac if that helps in any way. Thank you.

[EDIT] I think I managed to, answers still appreciated though, so that I can understand if I’m doing something wrong

Thanks!

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [February 22, 2016, 8:50am UTC](https://discourse.mapeditor.org/t/problem-with-collision-editor/1133/2 "2016-02-22T08:50:11Z")

</div>

Try holding `Ctrl` while moving or `Alt` while resizing. That should snap to the grid.

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![Pietro\_Moroni](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Pietro\_Moroni](https://discourse.mapeditor.org/u/Pietro_Moroni)\
**Post date:** [February 23, 2016, 7:01am UTC](https://discourse.mapeditor.org/t/problem-with-collision-editor/1133/3 "2016-02-23T07:01:44Z")

</div>

That did (I just had to hold **cmd** instead of **ctrl** because I’m on a mac, but it worked!). Thank you very much!

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [February 23, 2016, 7:21am UTC](https://discourse.mapeditor.org/t/problem-with-collision-editor/1133/4 "2016-02-23T07:21:08Z")

</div>

Just to note, you can permanently toggle on snapping to the grid in the View menu, where you can also enable “Snap to Fine Grid”, for which you can configure the number of subdivisions in the Preferences. That helps with placing shapes at exact slopes, for example.
