Sinking Bodies
Posted: Fri Nov 16, 2012 1:06 pm
So I finally decided to make the switch from Box2D to Chipmunk, although I'm having a problem. Basically, bodies can "sink" into each other. I found a video that shows the problem I'm having:
http://www.youtube.com/watch?v=3Ho4oCr7FVM
It happens for vertical and horizontal movements. Horizontal (IE: moving against a wall) is much worse, and will actually pass through the wall. My first thought was that it had something to do with the timestep. I've tried a lot of different implementations (both variable and fixed), however it doesn't seem to make a difference. I was able to get the player body from passing through the wall with one implementation, but he would still sink into the wall about half way (with a small timestep).
Any ideas what I could be doing wrong? Any help would be greatly appreciated. Must say that so far, I'm quite happy that I made the switch
http://www.youtube.com/watch?v=3Ho4oCr7FVM
It happens for vertical and horizontal movements. Horizontal (IE: moving against a wall) is much worse, and will actually pass through the wall. My first thought was that it had something to do with the timestep. I've tried a lot of different implementations (both variable and fixed), however it doesn't seem to make a difference. I was able to get the player body from passing through the wall with one implementation, but he would still sink into the wall about half way (with a small timestep).
Any ideas what I could be doing wrong? Any help would be greatly appreciated. Must say that so far, I'm quite happy that I made the switch