Public Member Functions | Private Member Functions | Private Attributes
SphereTriangleDetector Struct Reference

sphere-triangle to match the btDiscreteCollisionDetectorInterface More...

#include <SphereTriangleDetector.h>

Inheritance diagram for SphereTriangleDetector:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

sphere-triangle to match the btDiscreteCollisionDetectorInterface

Definition at line 29 of file SphereTriangleDetector.h.


Constructor & Destructor Documentation

SphereTriangleDetector::SphereTriangleDetector ( btSphereShape *  sphere,
btTriangleShape *  triangle,
btScalar  contactBreakingThreshold 
)
virtual SphereTriangleDetector::~SphereTriangleDetector ( ) [inline, virtual]

Definition at line 35 of file SphereTriangleDetector.h.


Member Function Documentation

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]
bool SphereTriangleDetector::pointInTriangle ( const btVector3  vertices[],
const btVector3 &  normal,
btVector3 *  p 
) [private]

Member Data Documentation

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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:33