2014-01-29 19:29:07 +00:00
|
|
|
#ifndef OPENMW_MECHANICS_STEERING_H
|
|
|
|
|
|
|
|
#include <OgreMath.h>
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
|
2014-04-20 16:35:07 +00:00
|
|
|
// Max rotating speed, radian/sec
|
|
|
|
const Ogre::Radian MAX_VEL_ANGULAR(10);
|
|
|
|
|
2014-01-29 19:29:07 +00:00
|
|
|
/// configure rotation settings for an actor to reach this target angle (eventually)
|
|
|
|
/// @return have we reached the target angle?
|
2014-04-20 04:27:18 +00:00
|
|
|
bool zTurn(const MWWorld::Ptr& actor, Ogre::Radian targetAngle,
|
|
|
|
Ogre::Degree epsilon = Ogre::Degree(0.5));
|
2014-01-29 19:29:07 +00:00
|
|
|
|
2014-04-27 09:49:31 +00:00
|
|
|
bool smoothTurn(const MWWorld::Ptr& actor, Ogre::Radian targetAngle, int axis,
|
|
|
|
Ogre::Degree epsilon = Ogre::Degree(0.5));
|
2014-04-25 20:20:55 +00:00
|
|
|
|
2014-01-29 19:29:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|