1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 00:39:59 +00:00
OpenMW/apps/openmw/mwphysics/stepper.hpp
2020-03-31 00:38:34 +03:00

33 lines
606 B
C++

#ifndef OPENMW_MWPHYSICS_STEPPER_H
#define OPENMW_MWPHYSICS_STEPPER_H
#include "trace.h"
class btCollisionObject;
class btCollisionWorld;
namespace osg
{
class Vec3f;
}
namespace MWPhysics
{
class Stepper
{
private:
const btCollisionWorld *mColWorld;
const btCollisionObject *mColObj;
ActorTracer mTracer, mUpStepper, mDownStepper;
bool mHaveMoved;
public:
Stepper(const btCollisionWorld *colWorld, const btCollisionObject *colObj);
bool step(osg::Vec3f &position, const osg::Vec3f &toMove, float &remainingTime);
};
}
#endif