1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/apps/openmw/mwphysics/stepper.hpp

33 lines
632 B
C++
Raw Normal View History

2020-03-30 20:07:12 +00:00
#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:
2022-09-22 18:26:05 +00:00
const btCollisionWorld* mColWorld;
const btCollisionObject* mColObj;
2020-03-30 20:07:12 +00:00
ActorTracer mTracer, mUpStepper, mDownStepper;
public:
2022-09-22 18:26:05 +00:00
Stepper(const btCollisionWorld* colWorld, const btCollisionObject* colObj);
2020-03-30 20:07:12 +00:00
2022-09-22 18:26:05 +00:00
bool step(osg::Vec3f& position, osg::Vec3f& velocity, float& remainingTime, const bool& onGround,
bool firstIteration);
2020-03-30 20:07:12 +00:00
};
}
#endif