OpenMW
libs/openengine/bullet/trace.h
Go to the documentation of this file.
00001 #ifndef OENGINE_BULLET_TRACE_H
00002 #define OENGINE_BULLET_TRACE_H
00003 
00004 #include <OgreVector3.h>
00005 
00006 
00007 class btCollisionObject;
00008 
00009 
00010 namespace OEngine
00011 {
00012 namespace Physic
00013 {
00014     class PhysicEngine;
00015 
00016     struct ActorTracer
00017     {
00018         Ogre::Vector3 mEndPos;
00019         Ogre::Vector3 mPlaneNormal;
00020 
00021         float mFraction;
00022 
00023         void doTrace(btCollisionObject *actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
00024                      const PhysicEngine *enginePass);
00025         void findGround(btCollisionObject *actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
00026                         const PhysicEngine *enginePass);
00027     };
00028 }
00029 }
00030 
00031 #endif