Run stepSimulation before moving actors

Shouldn't make too much of a difference, but a nice side effect is seeing the convexSweepTest calls for actor movements in the profiler results.
deque
scrawl 10 years ago
parent 7f18f85a1d
commit b345c50a86

@ -1309,6 +1309,8 @@ namespace MWWorld
void World::doPhysics(float duration)
{
mPhysics->stepSimulation(duration);
processDoors(duration);
mProjectileManager->update(duration);
@ -1327,8 +1329,6 @@ namespace MWWorld
}
if(player != results.end())
moveObjectImp(player->first, player->second.x, player->second.y, player->second.z);
mPhysics->stepSimulation(duration);
}
bool World::castRay (float x1, float y1, float z1, float x2, float y2, float z2)

Loading…
Cancel
Save