Using the latest Box2D r110 SVN version. In the game we're making we have a cannon that shoots out a cannonball. We have a stack of crates on a platform above that is not in the shooting range of the cannon. Yet there seems to be situations when Box2D is creating a large bounding box around one of the crates (seen with debug output on) and shooting the cannon makes the cannonball bounce off it as if there is an invisible wall. These bounding boxes seem to effect our callbacks (b2QueryCallback) by returning a collision when clearly there is not one.
Attached are two screenshots of our game. You will see a part of the cannon just to the left. The first screenshot shows the pink bounding box around one of the crates. The second screenshot is after moving around a little and the bounding box disappears. Shooting the cannon while in the state of the second screenshot works as expected.
Is this a bug or can someone explain why these bounding boxes sometimes grow and shrink to strange sizes. There are also other circumstances where this is causing problems with a World->QueryAABB callback.
If this is expected behavour and the bounding boxes are some sort of collision prediction then I can always add another check in the callback to make sure the b2Body falls within the AABB. But I just want to know if this is expected behaviour or not.
Attached are two screenshots of our game. You will see a part of the cannon just to the left. The first screenshot shows the pink bounding box around one of the crates. The second screenshot is after moving around a little and the bounding box disappears. Shooting the cannon while in the state of the second screenshot works as expected.
Is this a bug or can someone explain why these bounding boxes sometimes grow and shrink to strange sizes. There are also other circumstances where this is causing problems with a World->QueryAABB callback.
If this is expected behavour and the bounding boxes are some sort of collision prediction then I can always add another check in the callback to make sure the b2Body falls within the AABB. But I just want to know if this is expected behaviour or not.