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