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