16#ifndef BT_SPHERE_TRIANGLE_DETECTOR_H
17#define BT_SPHERE_TRIANGLE_DETECTOR_H
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
The btSphereShape implements an implicit sphere, centered around a local origin with radius.
btVector3 can be used to represent 3D points and vectors.
sphere-triangle to match the btDiscreteCollisionDetectorInterface
btTriangleShape * m_triangle
bool collide(const btVector3 &sphereCenter, btVector3 &point, btVector3 &resultNormal, btScalar &depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold)
SphereTriangleDetector(btSphereShape *sphere, btTriangleShape *triangle, btScalar contactBreakingThreshold)
virtual ~SphereTriangleDetector()
bool pointInTriangle(const btVector3 vertices[], const btVector3 &normal, btVector3 *p)
bool facecontains(const btVector3 &p, const btVector3 *vertices, btVector3 &normal)
virtual void getClosestPoints(const ClosestPointInput &input, Result &output, class btIDebugDraw *debugDraw, bool swapResults=false)
btScalar m_contactBreakingThreshold
This interface is made to be used by an iterative approach to do TimeOfImpact calculations This inter...