1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

34 lines
724 B
C
Raw Normal View History

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>
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;
class PhysicActor;
2013-08-17 04:42:35 -07:00
struct ActorTracer
{
Ogre::Vector3 mEndPos;
Ogre::Vector3 mPlaneNormal;
const btCollisionObject* mHitObject;
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);
void findGround(const OEngine::Physic::PhysicActor* actor, const Ogre::Vector3 &start, const Ogre::Vector3 &end,
2013-08-19 04:56:02 -07:00
const PhysicEngine *enginePass);
2013-08-17 04:42:35 -07:00
};
}
}
2012-03-19 19:38:44 -04:00
2012-04-08 18:25:50 +02:00
#endif