# Weird behavior with platformer hitting walls

**URL:** <https://forum.defold.com/t/weird-behavior-with-platformer-hitting-walls/3392>\
**Category:** Questions\
**Created:** [November 14, 2016, 4:38am UTC](https://forum.defold.com/t/weird-behavior-with-platformer-hitting-walls/3392 "2016-11-14T04:38:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [November 15, 2016, 12:40pm UTC](https://forum.defold.com/t/weird-behavior-with-platformer-hitting-walls/3392/5 "2016-11-15T12:40:18Z")

</div>

I don’t have anything really insightful here I’m afraid.  
First, if the boxes are not truly aligned (position.x and size.width) I would expect this behaviour.  
Second, if they _are_ aligned, then I believe it simply might be the fact that Box2D does not collapse the collision points. This is a common problem in all physics engines, and they do various things to solve this (e.g. merging geometry).  
I don’t know Box2D enough to suggest a good solution for this. Ping @Ragnar_Svensson, do you have any good ideas?

---

_[View the full topic](https://forum.defold.com/t/weird-behavior-with-platformer-hitting-walls/3392)._
