2012-03-19 23:38:44 +00:00
|
|
|
#ifndef OENGINE_BULLET_TRACE_H
|
|
|
|
#define OENGINE_BULLET_TRACE_H
|
|
|
|
|
2013-02-07 05:47:09 +00:00
|
|
|
#include <OgreVector3.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace OEngine
|
|
|
|
{
|
|
|
|
namespace Physic
|
|
|
|
{
|
|
|
|
class PhysicEngine;
|
|
|
|
}
|
|
|
|
}
|
2012-03-19 23:38:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct traceResults
|
|
|
|
{
|
2013-02-08 21:12:34 +00:00
|
|
|
Ogre::Vector3 endpos;
|
|
|
|
Ogre::Vector3 planenormal;
|
2012-03-19 23:38:44 +00:00
|
|
|
|
2013-02-08 21:12:34 +00:00
|
|
|
float fraction;
|
2012-03-19 23:38:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void newtrace(traceResults* const results, const Ogre::Vector3& start, const Ogre::Vector3& end, const Ogre::Vector3& BBExtents, const float rotation, bool isInterior, OEngine::Physic::PhysicEngine* enginePass);
|
|
|
|
|
2012-04-08 16:25:50 +00:00
|
|
|
#endif
|