Want to get the collision force but its zero in the collision callbacks, tried going through the collision manifold right after stepSimulation() like the Phya code does and its zero, last option is to go through the manifold in the tick callback to see if I can get the collision force.
This is in the header:
Code: Select all
static void InternalTickCallback(const btDynamicsWorld *world, btScalar timeStep);
Code: Select all
void CPhysics::InternalTickCallback(const btDynamicsWorld *world, btScalar timeStep)
{
const int numManifolds = world->getDispatcher()->getNumManifolds();