2015-05-12 01:02:15 +00:00
|
|
|
#ifndef OENGINE_BULLET_TRACE_H
|
|
|
|
#define OENGINE_BULLET_TRACE_H
|
|
|
|
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
|
|
class btCollisionObject;
|
2015-05-27 21:09:38 +00:00
|
|
|
class btCollisionWorld;
|
2015-05-12 01:02:15 +00:00
|
|
|
|
|
|
|
namespace MWPhysics
|
|
|
|
{
|
|
|
|
class Actor;
|
|
|
|
|
|
|
|
struct ActorTracer
|
|
|
|
{
|
|
|
|
osg::Vec3f mEndPos;
|
|
|
|
osg::Vec3f mPlaneNormal;
|
2016-12-24 22:07:44 +00:00
|
|
|
osg::Vec3f mHitPoint;
|
2015-05-12 01:02:15 +00:00
|
|
|
const btCollisionObject* mHitObject;
|
|
|
|
|
|
|
|
float mFraction;
|
|
|
|
|
2021-10-29 19:11:08 +00:00
|
|
|
void doTrace(const btCollisionObject* actor, const osg::Vec3f& start, const osg::Vec3f& end,
|
|
|
|
const btCollisionWorld* world, bool attempt_short_trace = false);
|
2016-03-05 15:09:56 +00:00
|
|
|
void findGround(
|
|
|
|
const Actor* actor, const osg::Vec3f& start, const osg::Vec3f& end, const btCollisionWorld* world);
|
2015-05-12 01:02:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|