|
@@ -148,9 +148,17 @@ do_physics(float dt, int substeps, float stepsize) {
|
|
|
|
|
|
|
|
// Simulation
|
|
// Simulation
|
|
|
_pstat_simulation.start();
|
|
_pstat_simulation.start();
|
|
|
- _world->stepSimulation(dt, substeps, stepsize);
|
|
|
|
|
|
|
+ int n = _world->stepSimulation(dt, substeps, stepsize);
|
|
|
_pstat_simulation.stop();
|
|
_pstat_simulation.stop();
|
|
|
|
|
|
|
|
|
|
+ if (!n) {
|
|
|
|
|
+ bullet_cat.warning() << "interpolated transforms!" << endl;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //if (dt > substeps * stepsize) {
|
|
|
|
|
+ // bullet_cat.warning() << "lost simulation time!" << endl;
|
|
|
|
|
+ //}
|
|
|
|
|
+
|
|
|
// Synchronize Bullet to Panda
|
|
// Synchronize Bullet to Panda
|
|
|
_pstat_b2p.start();
|
|
_pstat_b2p.start();
|
|
|
sync_b2p();
|
|
sync_b2p();
|