sphere-triangle to match the btDiscreteCollisionDetectorInterface More...
#include <SphereTriangleDetector.h>
Public Member Functions | |
bool | collide (const btVector3 &sphereCenter, btVector3 &point, btVector3 &resultNormal, btScalar &depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold) |
virtual void | getClosestPoints (const ClosestPointInput &input, Result &output, class btIDebugDraw *debugDraw, bool swapResults=false) |
SphereTriangleDetector (btSphereShape *sphere, btTriangleShape *triangle, btScalar contactBreakingThreshold) | |
virtual | ~SphereTriangleDetector () |
Private Member Functions | |
bool | facecontains (const btVector3 &p, const btVector3 *vertices, btVector3 &normal) |
bool | pointInTriangle (const btVector3 vertices[], const btVector3 &normal, btVector3 *p) |
Private Attributes | |
btScalar | m_contactBreakingThreshold |
btSphereShape * | m_sphere |
btTriangleShape * | m_triangle |
sphere-triangle to match the btDiscreteCollisionDetectorInterface
Definition at line 29 of file SphereTriangleDetector.h.
SphereTriangleDetector::SphereTriangleDetector | ( | btSphereShape * | sphere, |
btTriangleShape * | triangle, | ||
btScalar | contactBreakingThreshold | ||
) |
virtual SphereTriangleDetector::~SphereTriangleDetector | ( | ) | [inline, virtual] |
Definition at line 35 of file SphereTriangleDetector.h.
bool SphereTriangleDetector::collide | ( | const btVector3 & | sphereCenter, |
btVector3 & | point, | ||
btVector3 & | resultNormal, | ||
btScalar & | depth, | ||
btScalar & | timeOfImpact, | ||
btScalar | contactBreakingThreshold | ||
) |
bool SphereTriangleDetector::facecontains | ( | const btVector3 & | p, |
const btVector3 * | vertices, | ||
btVector3 & | normal | ||
) | [private] |
virtual void SphereTriangleDetector::getClosestPoints | ( | const ClosestPointInput & | input, |
Result & | output, | ||
class btIDebugDraw * | debugDraw, | ||
bool | swapResults = false |
||
) | [virtual] |
Implements btDiscreteCollisionDetectorInterface.
bool SphereTriangleDetector::pointInTriangle | ( | const btVector3 | vertices[], |
const btVector3 & | normal, | ||
btVector3 * | p | ||
) | [private] |
Definition at line 47 of file SphereTriangleDetector.h.
btSphereShape* SphereTriangleDetector::m_sphere [private] |
Definition at line 45 of file SphereTriangleDetector.h.
btTriangleShape* SphereTriangleDetector::m_triangle [private] |
Definition at line 46 of file SphereTriangleDetector.h.