1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/apps/openmw/mwmechanics/steering.hpp

27 lines
643 B
C++
Raw Normal View History

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-01-29 19:29:07 +00:00
}
#endif