i implemented a btCollisionDispatcher class, it is basically empty with some stuff move from needsResponse to needsCollision, otherwise it is unchanged. in additional, following the example in wiki filtering example i also added:
btOverlapFilterCallback * filterCallback = new YourOwnFilterCallback();
pDynamicsWorld->getPairCache()->setOverlapFilterCallback(filterCallback);
I notice there is alot of Static/Kinematic to Static/Kinematic test in needsCollision,
is that normal? it is dragging hard on my framerate and I assume these would be discarded in Broadphase.
so what do I need to do to make that happen?
Also I have assumed setting the mass to 0 make it a static object,
am i wrong, is there something else to add to make it work?
getting Static/Kinematic out of btCollisionDispatcher?
-
- Posts: 43
- Joined: Fri Jun 15, 2012 7:11 am