Default ShouldCollide Method in Box2d Problem

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

I still have this problem. It is definitely a problem with Shape2 - I can't get this to work the TestBed examples either, so I don't think it is me doing something wrong.


It doesn't crash doing this. (this is just an example to show the problem)

Method ShouldCollide:Int(shape1:b2Shape, shape2:b2Shape)
                Local bd:b2Body=shape1.GetBody()
                Return False
EndMethod


but if i try to do anthing with Shape2 it doesn't like it

Method ShouldCollide:Int(shape1:b2Shape, shape2:b2Shape)
                Local bd:b2Body=shape1.GetBody()
                Local bd2:b2Body=shape2.GetBody()
                Return False
EndMethod


I now get an unhandled memory exception.

Does anyone else get this?