Box2D contact points are based on feature pairs, not shape pairs. So when the features that are in contact change, the contact point is removed and a new one is added.
When a sphere moves through a box, the contact point moves from one face of the box to another. This changes the contact features and thus an remove/add sequence occurs.
This was not done to torment you. It was done so that Box2D can persist contact forces from step to step. If there are two contact points, like when a box is touching another box, I need a way to give the contact points an tag/id to match new points with old points. It turns out that using feature pairs is an efficient way to do this.
Believe it or not, this is not the first time this issue has come up. I have answered this question several times on these forums. This is why I have changed the contact listener interface so as to stop tormenting users like you.
There may be a bug in the release code that prevents poly-vs-circle reporting add/remove correctly. The latest SVN version of the code should not have this bug.
When a sphere moves through a box, the contact point moves from one face of the box to another. This changes the contact features and thus an remove/add sequence occurs.
This was not done to torment you. It was done so that Box2D can persist contact forces from step to step. If there are two contact points, like when a box is touching another box, I need a way to give the contact points an tag/id to match new points with old points. It turns out that using feature pairs is an efficient way to do this.
Believe it or not, this is not the first time this issue has come up. I have answered this question several times on these forums. This is why I have changed the contact listener interface so as to stop tormenting users like you.
There may be a bug in the release code that prevents poly-vs-circle reporting add/remove correctly. The latest SVN version of the code should not have this bug.