You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
544 B
C++
28 lines
544 B
C++
#ifndef GAME_MWMECHANICS_MOVEMENT_H
|
|
#define GAME_MWMECHANICS_MOVEMENT_H
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
namespace MWMechanics
|
|
{
|
|
/// Desired movement for an actor
|
|
struct Movement
|
|
{
|
|
float mPosition[3];
|
|
float mRotation[3];
|
|
|
|
Movement()
|
|
{
|
|
mPosition[0] = mPosition[1] = mPosition[2] = 0.0f;
|
|
mRotation[0] = mRotation[1] = mRotation[2] = 0.0f;
|
|
}
|
|
|
|
osg::Vec3f asVec3()
|
|
{
|
|
return osg::Vec3f(mPosition[0], mPosition[1], mPosition[2]);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|