convexSweepTest with multi-object return callback problem

Please don't post Bullet support questions here, use the above forums instead.
tnise
Posts: 1
Joined: Tue Apr 06, 2010 9:11 am

convexSweepTest with multi-object return callback problem

Post by tnise »

hello everyone !
I have a problem while using convexSweepTest , first I use ClosestConvexResultCallback to get nearest btCollisionObject* , it is OK. then I found I Need to get All Collisioned Object* not only the nearest one, I don't know which callback to use.

the func desc is below:
// convexTest performs a swept convex cast on all objects in the btCollisionWorld, and calls the resultCallback
// This allows for several queries: first hit, all hits, any hit, dependent on the value return by the callback.
void convexSweepTest (const btConvexShape* castShape, const btTransform& from, const btTransform& to, ConvexResultCallback& resultCallback, btScalar allowedCcdPenetration = btScalar(0.)) const;

please help me~!!