1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-04 13:45:34 +00:00

physics interface

This commit is contained in:
Marc Zinnschlag 2011-01-23 15:28:42 +01:00
parent 36cb10572a
commit 162db31a5f
2 changed files with 17 additions and 0 deletions

View file

@ -97,3 +97,13 @@ std::pair<std::string, float> MWScene::getFacedHandle (MWWorld::World& world)
return std::pair<std::string, float>(handle, distance);
}
void MWScene::doPhysics (float duration, MWWorld::World& world)
{
}
void MWScene::setMovement (const std::vector<std::string, Ogre::Vector3>& actors)
{
}

View file

@ -54,6 +54,13 @@ namespace MWRender
/// name is empty and distance = -1 if there is no object which
/// can be faced
std::pair<std::string, float> getFacedHandle (MWWorld::World& world);
/// Run physics simulation and modify \a world accordingly.
void doPhysics (float duration, MWWorld::World& world);
/// Inform phyiscs system about desired velocity vectors for actors
/// (in Morrowind coordinates).
void setMovement (const std::vector<std::string, Ogre::Vector3>& actors);
};
}