OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
movement.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWMECHANICS_MOVEMENT_H
2 #define GAME_MWMECHANICS_MOVEMENT_H
3 
4 #include <osg/Vec3f>
5 
6 namespace MWMechanics
7 {
9  struct Movement
10  {
11  float mPosition[3];
12  float mRotation[3];
13 
15  {
16  mPosition[0] = mPosition[1] = mPosition[2] = 0.0f;
17  mRotation[0] = mRotation[1] = mRotation[2] = 0.0f;
18  }
19 
20  osg::Vec3f asVec3()
21  {
22  return osg::Vec3f(mPosition[0], mPosition[1], mPosition[2]);
23  }
24  };
25 }
26 
27 #endif
float mPosition[3]
Definition: movement.hpp:11
float mRotation[3]
Definition: movement.hpp:12
Desired movement for an actor.
Definition: movement.hpp:9
Movement()
Definition: movement.hpp:14
osg::Vec3f asVec3()
Definition: movement.hpp:20