I have the physics engine set to a fixed 60hz and my engine is free running. If free running at 120hz then the physics step will skip one update and add the deltatime to some sort of accumulator.
Is there anyway, without altering Bullet's source code, to determine if Bullet will skip a particular update before calling its step function? Something like:
Code: Select all
float total = accumulatorSoFar + deltaTime; if (total >= doStepValue) updateNode();
At the moment I have to synchronise with my nodes, which will basically undo a movement of a kinematic object (setting it from the ghostobject) if step returns zero. I'd like to cut out the wasted calculations used to manually move the kinematic object when no physics step occurs.