I've tried implementing gContactAddedCallback, and have a problem with it. In usual collision, the function will be called, but in rare condition - when you "touch" and edge of a rigid body (in my case, a box, btBoxShape) with edge of another rigid body (in my case, a sphere, btSphereShape). Below is the screenshot of what's happening
The box on top should have contact with the sphere on the left, because it is "pushing" the sphere away, but gContactAddedCallback was not called (I print something when it is called).
Can anyone help me with this?
Thanks a lot.