1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

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.
This commit is contained in:
scrawl 2014-09-29 14:55:31 +02:00
parent 7f18f85a1d
commit b345c50a86

View File

@ -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)