btPairCachingGhostObject not returning static objects

ghertum
Posts: 3
Joined: Wed Jan 26, 2011 11:11 pm

btPairCachingGhostObject not returning static objects

Post by ghertum »

I'm using a btPairCachingGhostObject to get all objects in it's shape. I can't really use just a simple AABB test since I need narrowphase precision.

The problem I'm running into is that I'm unable to get my ghost to return any static objects and I'm wondering if this is by design or if I'm just doing it wrong?

Edit:
Apparently I'd forgotten the green part:
dynamicsWorld->addCollisionObject(ghost, btBroadphaseProxy::SensorTrigger,btBroadphaseProxy::AllFilter & ~btBroadphaseProxy::SensorTrigger);

This, my friends, is what you get when you mix too little sleep with too little coffee...