2012-03-19 19:38:44 -04:00
|
|
|
#ifndef OENGINE_BULLET_TRACE_H
|
|
|
|
#define OENGINE_BULLET_TRACE_H
|
|
|
|
|
2013-02-06 21:47:09 -08:00
|
|
|
#include <OgreVector3.h>
|
|
|
|
|
|
|
|
|
2013-08-17 02:51:19 -07:00
|
|
|
class btCollisionObject;
|
|
|
|
|
|
|
|
|
2013-08-17 04:42:35 -07:00
|
|
|
namespace OEngine
|
|
|
|
{
|
|
|
|
namespace Physic
|
2012-03-19 19:38:44 -04:00
|
|
|
{
|
2013-08-17 04:42:35 -07:00
|
|
|
class PhysicEngine;
|
|
|
|
|
|
|
|
struct ActorTracer
|
|
|
|
{
|
|
|
|
Ogre::Vector3 mEndPos;
|
|
|
|
Ogre::Vector3 mPlaneNormal;
|
2012-03-19 19:38:44 -04:00
|
|
|
|
2013-08-17 04:42:35 -07:00
|
|
|
float mFraction;
|
2012-03-19 19:38:44 -04:00
|
|
|
|
2013-08-17 04:42:35 -07:00
|
|
|
void doTrace(btCollisionObject *actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
|
|
|
|
const PhysicEngine *enginePass);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2012-03-19 19:38:44 -04:00
|
|
|
|
2012-04-08 18:25:50 +02:00
|
|
|
#endif
|