First off, thanks for a wonderful library. It's a rare piece of open source software that is as usable, well-designed and well-documented as Box2D.
But I'm having a strange issue lately. Sometimes, dynamic polygon-shaped bodies randomly get stuck when colliding with another, static polygon-shaped body. The problem does not occur frequently, and is therefore hard to debug. Symptoms:
I first saw this when using a polygon with three collinear vertices (so almost concave), but I have also seen it happen with rectangle vs. rectangle collisions. It seems to be easier to reproduce with the almost-concave shape, though.
The symptoms look similar to those described in this topic. The "shooting" described there might be due to the nonzero velocity I'm seeing. The corresponding issue seems to be this one, but it's not yet marked as "fixed". What's the status on this?
I'm using Box2D 2.1.2, compiled from source on Linux with g++ 4.4.3. I did not modify the defaults in b2Settings.h.
I realize that this is a bit vague, and that the problem could well be in my own code. If I find a reliable way to reproduce the problem, I'll definitely post some example code. But in the meantime, I hope that someone has seen this issue before, and give me some pointers on where to look and what to try. Any ideas?
But I'm having a strange issue lately. Sometimes, dynamic polygon-shaped bodies randomly get stuck when colliding with another, static polygon-shaped body. The problem does not occur frequently, and is therefore hard to debug. Symptoms:
- The body does not move anymore
- The body remains awake
- The body's velocity remains nonzero
- When applying forces, the body's velocity does change, but its position doesn't
I first saw this when using a polygon with three collinear vertices (so almost concave), but I have also seen it happen with rectangle vs. rectangle collisions. It seems to be easier to reproduce with the almost-concave shape, though.
The symptoms look similar to those described in this topic. The "shooting" described there might be due to the nonzero velocity I'm seeing. The corresponding issue seems to be this one, but it's not yet marked as "fixed". What's the status on this?
I'm using Box2D 2.1.2, compiled from source on Linux with g++ 4.4.3. I did not modify the defaults in b2Settings.h.
I realize that this is a bit vague, and that the problem could well be in my own code. If I find a reliable way to reproduce the problem, I'll definitely post some example code. But in the meantime, I hope that someone has seen this issue before, and give me some pointers on where to look and what to try. Any ideas?