Default ShouldCollide Method in Box2d Problem

BlitzMax Modules Forums/Brucey's Modules/Default ShouldCollide Method in Box2d Problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Brucey - Yes there is definitely a problem. Can you check to see if you also have the same problem. I wonder if is a problem with Box2D or the Blitz wrapper?

Here is what I am having trouble with

1. If you create a new body and its shape is overlapping another body's shape then I get an unhandled memory exception' error. This only happens if you implement your own Contact Filter. If you use the defauly system shapes can happily overlap on creation

2. if you create a shape+body and it overlaps another objects AABB then the same error occurs. This means you can't create a shape next to a slope of a triangle for instance - even if the actual shapes aren't actually overlapping. Again this only happens when implementing a ContactFilter.

Please note these problem only seem to happen when the object is first created, not at any other time. I could see a solution would be to create an object offscreen and then manually place it at a seperate position. But this is not really satisfactory. Would you mind checking to see if you also have the above problems?

Thank you very much - Rico