I have tried many things but I still cannot get these blocks to stop sticking.
I'm wondering, how would someone else construct a grid of blocks using box2d? At the moment I just add them to the world at a specific point, is there a better way?
I've just looked at the FAQ and noticed that this problem is a known problem. (I probably should have looked there before posting this 🙄 )
So, any other suggestions are greatly appreciated, but otherwise thanks for your help.
Have you tried making your player a 'bullet' (applying continuous collision detection)?
It may be that every once in a while the horizontal penitration is larger than vertical resulting in a contact being created on the edge of a tile that should be inaccessible.
I had this trouble using XNA's built in rectangle system and while trying to make my own basic rectangle collisions. When sliding down a wall and pushing into it, my player would lose all downward velocity for a frame and begin falling again!
Give CCD a whirl, can't hurt to try.
Yes, there is some work being done (slowly) on this in the SVN trunk.