OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
steering.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MECHANICS_STEERING_H
2 #define OPENMW_MECHANICS_STEERING_H
3 
4 #include <osg/Math>
5 
6 namespace MWWorld
7 {
8 class Ptr;
9 }
10 
11 namespace MWMechanics
12 {
13 
14 // Max rotating speed, radian/sec
15 const float MAX_VEL_ANGULAR_RADIANS(10);
16 
19 bool zTurn(const MWWorld::Ptr& actor, float targetAngleRadians,
20  float epsilonRadians = osg::DegreesToRadians(0.5));
21 
22 bool smoothTurn(const MWWorld::Ptr& actor, float targetAngleRadians, int axis,
23  float epsilonRadians = osg::DegreesToRadians(0.5));
24 
25 }
26 
27 #endif
bool zTurn(const MWWorld::Ptr &actor, float targetAngleRadians, float epsilonRadians)
Definition: steering.cpp:43
const float MAX_VEL_ANGULAR_RADIANS(10)
bool smoothTurn(const MWWorld::Ptr &actor, float targetAngleRadians, int axis, float epsilonRadians)
Definition: steering.cpp:13
Pointer to a LiveCellRef.
Definition: ptr.hpp:19