Force a collision check

markhula
Posts: 34
Joined: Thu Jun 17, 2010 10:11 am

Force a collision check

Post by markhula »

Hi all,

I use the callback function to determine collisions.
The problem is on a particular object I need to know whether it has collided *now* and not potentially when the bullet update occurs.
So how do I effectively force bullet to check for a collision that I can then pass too my

bool collision_callback( btManifoldPoint &_btManifoldPoint,
const btCollisionObject *_btCollisionObject0,int p0, int i0,
const btCollisionObject *_btCollisionObject1,int p1, int i1 )

and treat it correctly.

Thanks in advance