OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
trace.h
Go to the documentation of this file.
1 #ifndef OENGINE_BULLET_TRACE_H
2 #define OENGINE_BULLET_TRACE_H
3 
4 #include <osg/Vec3f>
5 
6 class btCollisionObject;
7 class btCollisionWorld;
8 
9 
10 namespace MWPhysics
11 {
12  class Actor;
13 
14  struct ActorTracer
15  {
16  osg::Vec3f mEndPos;
17  osg::Vec3f mPlaneNormal;
18  osg::Vec3f mHitPoint;
19  const btCollisionObject* mHitObject;
20 
21  float mFraction;
22 
23  void doTrace(const btCollisionObject *actor, const osg::Vec3f& start, const osg::Vec3f& end, const btCollisionWorld* world);
24  void findGround(const Actor* actor, const osg::Vec3f& start, const osg::Vec3f& end, const btCollisionWorld* world);
25  };
26 }
27 
28 #endif
osg::Vec3f mHitPoint
Definition: trace.h:18
void doTrace(const btCollisionObject *actor, const osg::Vec3f &start, const osg::Vec3f &end, const btCollisionWorld *world)
Definition: trace.cpp:53
void findGround(const Actor *actor, const osg::Vec3f &start, const osg::Vec3f &end, const btCollisionWorld *world)
Definition: trace.cpp:94
float mFraction
Definition: trace.h:21
osg::Vec3f mPlaneNormal
Definition: trace.h:17
const btCollisionObject * mHitObject
Definition: trace.h:19
osg::Vec3f mEndPos
Definition: trace.h:16
Definition: trace.h:14
Definition: actor.hpp:48