1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00
OpenMW/apps/openmw/mwphysics/trace.h
2022-09-22 21:35:26 +03:00

30 lines
700 B
C++

#ifndef OENGINE_BULLET_TRACE_H
#define OENGINE_BULLET_TRACE_H
#include <osg/Vec3f>
class btCollisionObject;
class btCollisionWorld;
namespace MWPhysics
{
class Actor;
struct ActorTracer
{
osg::Vec3f mEndPos;
osg::Vec3f mPlaneNormal;
osg::Vec3f mHitPoint;
const btCollisionObject* mHitObject;
float mFraction;
void doTrace(const btCollisionObject* actor, const osg::Vec3f& start, const osg::Vec3f& end,
const btCollisionWorld* world, bool attempt_short_trace = false);
void findGround(
const Actor* actor, const osg::Vec3f& start, const osg::Vec3f& end, const btCollisionWorld* world);
};
}
#endif