1 of 3
jmasterx
  • 2.1k
  • 2
  • 26
  • 41

Floating point pressision issue with Box2D

I'm using Box2D and I am putting edge tiles as b2Bodies so that the tile world can have physics:

![enter image description here][1]

The problem is that there are 3 b2_kinematic bodies under the player right beside each other.

Every so often, he gets stuck like in this image (as if there were a very very small slope) and the player box gets stuck. I have to move him back a little to overcome it.

The player has fixed rotation which is what also causes this.

I'm not sure how to fix this.

Any ideas?

Thanks [1]: https://i.stack.imgur.com/LQmKB.png

jmasterx
  • 2.1k
  • 2
  • 26
  • 41