mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 13:45:34 +00:00
physics interface
This commit is contained in:
parent
36cb10572a
commit
162db31a5f
2 changed files with 17 additions and 0 deletions
|
@ -97,3 +97,13 @@ std::pair<std::string, float> MWScene::getFacedHandle (MWWorld::World& world)
|
||||||
|
|
||||||
return std::pair<std::string, float>(handle, distance);
|
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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -54,6 +54,13 @@ namespace MWRender
|
||||||
/// name is empty and distance = -1 if there is no object which
|
/// name is empty and distance = -1 if there is no object which
|
||||||
/// can be faced
|
/// can be faced
|
||||||
std::pair<std::string, float> getFacedHandle (MWWorld::World& world);
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue