if i enable the bounding boxes display in the debug drawer one can see that they are by far not intersecting. if i use another broadphase like bt32BitAxisSweep3(btVector3(-1, -1, -1), btVector3(1, 1, 1)) everything works as expected - the pair of those two bodies is reported as soon as their aabb overlapp... which bounding volume sizes does Dbvt use? obviously different to bt32BitAxisSweep3.
i've found
Code: Select all
#define DBVT_BP_MARGIN (btScalar)0.05
so i guess i can not tweak that at runtime?! (only by deriving my own bp from dbvt and overloading setAabb, i'd say.)
and when exactly is the pair reported? as soon as aabb(shape) + shape-margin + DBVT_BP_MARGIN overlapp?
should'nt then DBVT_BP_MARGIN(/or a variable for that) be optionally user-setable at runtime?
a small test program demonstrating this is attached.