@ -179,6 +179,8 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
focusFrameCounter = 0;
}
mEnvironment.mWorld->doPhysics (mEnvironment.mFrameDuration);
catch (const std::exception& e)
{
@ -833,4 +833,9 @@ namespace MWWorld
if (y<0)
--cellY;
void World::doPhysics (float duration)
mScene.doPhysics (duration, *this);
@ -162,6 +162,9 @@ namespace MWWorld
void positionToIndex (float x, float y, int &cellX, int &cellY) const;
///< Convert position to cell numbers
void doPhysics (float duration);
///< Run physics simulation and modify \a world accordingly.
};