I've been having trouble with setInternalTickCallback.
If I do something like the following:
Code: Select all
dynamicsWorld_ = new btDiscreteDynamicsWorld(dispatcher_,
broadphase_, solver_, collisionConfiguration_);
dynamicsWorld_->setInternalTickCallback(&TickCallback);
Code: Select all
static void TickCallback(btDynamicsWorld *colWorld1, btScalar tS) {
printf("It's like a clock inside my head: %i\n", tS);
}
Code: Select all
dynamicsWorld_->stepSimulation(dt, 5, 0.001);
I notice the callback doesn't get called at all, though all the rest of the simulation is perfectly normal.
What could I be doing wrong?
Thanks
Krones