History

Merge branch 'master' of https://github.com/highfidelity/hifi into dont-use-other-avatar-sounds

Howard Stearns committed 11 years ago

Commit 28246c12 parents ce1d0fe ec92c4e214 files · +9042 −4228Browse files

Showing the changes to libraries/physics/src/PhysicsEngine.cpp (1 of 214 files). Show all

Unified · Split

libraries/physics/src/PhysicsEngine.cpp+3−2
@@ -241,7 +241,7 @@ void PhysicsEngine::stepSimulation() { · 240 unmodified lines
241241 float timeStep = btMin(dt, MAX_TIMESTEP);
242242
243243 if (_myAvatarController) {
244− // ADEBUG TODO: move this stuff outside and in front of stepSimulation, because
244+ // ADEBUG TODO: move this stuff outside and in front of stepSimulation, because
245245 // the updateShapeIfNecessary() call needs info from MyAvatar and should
246246 // be done on the main thread during the pre-simulation stuff
247247 if (_myAvatarController->needsRemoval()) {
@@ -263,7 +263,8 @@ void PhysicsEngine::stepSimulation() { · 15 unmodified lines
263263 updateContactMap();
264264 };
265265
266− int numSubsteps = _dynamicsWorld->stepSimulation(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS, PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
266+ int numSubsteps = _dynamicsWorld->stepSimulationWithSubstepCallback(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS,
267+ PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
267268 if (numSubsteps > 0) {
268269 BT_PROFILE("postSimulation");
269270 _numSubsteps += (uint32_t)numSubsteps;