2011-02-03 10:37:17 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_MOVEMENT_H
|
|
|
|
#define GAME_MWMECHANICS_MOVEMENT_H
|
|
|
|
|
2015-05-12 01:02:15 +00:00
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
2011-02-03 10:37:17 +00:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
/// Desired movement for an actor
|
|
|
|
struct Movement
|
|
|
|
{
|
2013-03-31 02:00:46 +00:00
|
|
|
float mPosition[3];
|
|
|
|
float mRotation[3];
|
2019-10-31 05:44:40 +00:00
|
|
|
float mSpeedFactor;
|
2020-06-22 00:03:38 +00:00
|
|
|
bool mIsStrafing;
|
2011-02-03 10:37:17 +00:00
|
|
|
|
2013-03-31 02:00:46 +00:00
|
|
|
Movement()
|
|
|
|
{
|
|
|
|
mPosition[0] = mPosition[1] = mPosition[2] = 0.0f;
|
|
|
|
mRotation[0] = mRotation[1] = mRotation[2] = 0.0f;
|
2019-10-31 05:44:40 +00:00
|
|
|
mSpeedFactor = 1.f;
|
2020-06-22 00:03:38 +00:00
|
|
|
mIsStrafing = false;
|
2013-03-31 02:00:46 +00:00
|
|
|
}
|
2015-05-12 01:02:15 +00:00
|
|
|
|
|
|
|
osg::Vec3f asVec3()
|
|
|
|
{
|
|
|
|
return osg::Vec3f(mPosition[0], mPosition[1], mPosition[2]);
|
|
|
|
}
|
2011-02-03 10:37:17 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|