# Unexpected Collision With TileMapLayers

**URL:** <https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543>\
**Category:** Physics\
**Tags:** godot-4, 2d, tilemap\
**Created:** [January 25, 2025, 6:46pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543 "2025-01-25T18:46:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oofishy](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/o/82dd89/32.png) [@Oofishy](https://forum.godotengine.org/u/Oofishy)\
**Post date:** [January 25, 2025, 6:46pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/1 "2025-01-25T18:46:31Z")

</div>

### Godot Version

4.3

### Question

I am working on a game where the main player is a rigid body, I added a tile map for the level, but I started noticing some weird interaction:

At the edges of the tiles the RigidBody is detecting an extra collision leading it to bounce around In unexpected ways:

 ![Screen Shot 2025-01-25 at 12.35.12 PM](https://forum.godotengine.org/uploads/default/original/3X/f/d/fd9d2c87c1c23f1d04d32d23066942128e20979b.png)

This is what I would expect:

 ![Screen Shot 2025-01-25 at 12.43.03 PM](https://forum.godotengine.org/uploads/default/original/3X/b/9/b948819ad7ed470394c6d10054f52ac2e53d948a.png)

Is there any way to fix this?

---

<div class="post-metadata">

**Author:** ![athousandships](https://forum.godotengine.org/user_avatar/forum.godotengine.org/athousandships/32/12554_2.png) [@athousandships](https://forum.godotengine.org/u/athousandships)\
**Post date:** [January 25, 2025, 6:47pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/2 "2025-01-25T18:47:47Z")

</div>

That looks like it’s on the edge between two tiles

---

<div class="post-metadata">

**Author:** ![Oofishy](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/o/82dd89/32.png) [@Oofishy](https://forum.godotengine.org/u/Oofishy)\
**Post date:** [January 25, 2025, 6:49pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/3 "2025-01-25T18:49:13Z")

</div>

> [@Oofishy](#):
>
> edges of the tiles

I know, but it’s making the rigid body bounce of the ground weirdly

---

<div class="post-metadata">

**Author:** ![athousandships](https://forum.godotengine.org/user_avatar/forum.godotengine.org/athousandships/32/12554_2.png) [@athousandships](https://forum.godotengine.org/u/athousandships)\
**Post date:** [January 25, 2025, 6:52pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/4 "2025-01-25T18:52:11Z")

</div>

My bad missed in the description, this is a known issue see [RigidBody2D inconsistent bounces near the junction between two squared tiles · Issue #76610 · godotengine/godot · GitHub](https://github.com/godotengine/godot/issues/76610)

---

<div class="post-metadata">

**Author:** ![Oofishy](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/o/82dd89/32.png) [@Oofishy](https://forum.godotengine.org/u/Oofishy)\
**Post date:** [January 25, 2025, 6:55pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/5 "2025-01-25T18:55:21Z")

</div>

ok, thanks!

---

<div class="post-metadata">

**Author:** ![Oofishy](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/o/82dd89/32.png) [@Oofishy](https://forum.godotengine.org/u/Oofishy)\
**Post date:** [January 25, 2025, 6:57pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/6 "2025-01-25T18:57:06Z")

</div>

For anyone Reading also look at this [GitHub - popcar2/GodotTilemapBaker: A Godot tool to pre-bake collisions on square Tilemaps!](https://github.com/popcar2/GodotTilemapBaker)

---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [February 24, 2025, 6:58pm UTC](https://forum.godotengine.org/t/unexpected-collision-with-tilemaplayers/99543/7 "2025-02-24T18:58:00Z")

</div>

Closed on February 24, 2025, 6:58pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
