Bullet Collision Detection & Physics Library
Public Member Functions | Public Attributes | Private Attributes | List of all members
btConvexTriangleCallback Class Reference

For each triangle in the concave mesh that overlaps with the AABB of a convex (m_convexProxy), processTriangle is called. More...

#include <btConvexConcaveCollisionAlgorithm.h>

Inheritance diagram for btConvexTriangleCallback:
Inheritance graph
[legend]
Collaboration diagram for btConvexTriangleCallback:
Collaboration graph
[legend]

Public Member Functions

 btConvexTriangleCallback (btDispatcher *dispatcher, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
 
void setTimeStepAndCounters (btScalar collisionMarginTriangle, const btDispatcherInfo &dispatchInfo, const btCollisionObjectWrapper *convexBodyWrap, const btCollisionObjectWrapper *triBodyWrap, btManifoldResult *resultOut)
 
void clearWrapperData ()
 
virtual ~btConvexTriangleCallback ()
 
virtual void processTriangle (btVector3 *triangle, int partId, int triangleIndex)
 
void clearCache ()
 
const btVector3getAabbMin () const
 
const btVector3getAabbMax () const
 
- Public Member Functions inherited from btTriangleCallback
virtual ~btTriangleCallback ()
 

Public Attributes

int m_triangleCount
 
btPersistentManifoldm_manifoldPtr
 

Private Attributes

const btCollisionObjectWrapperm_convexBodyWrap
 
const btCollisionObjectWrapperm_triBodyWrap
 
btVector3 m_aabbMin
 
btVector3 m_aabbMax
 
btManifoldResultm_resultOut
 
btDispatcherm_dispatcher
 
const btDispatcherInfom_dispatchInfoPtr
 
btScalar m_collisionMarginTriangle
 

Detailed Description

For each triangle in the concave mesh that overlaps with the AABB of a convex (m_convexProxy), processTriangle is called.

Definition at line 29 of file btConvexConcaveCollisionAlgorithm.h.

Constructor & Destructor Documentation

btConvexTriangleCallback::btConvexTriangleCallback ( btDispatcher dispatcher,
const btCollisionObjectWrapper body0Wrap,
const btCollisionObjectWrapper body1Wrap,
bool  isSwapped 
)

Definition at line 50 of file btConvexConcaveCollisionAlgorithm.cpp.

btConvexTriangleCallback::~btConvexTriangleCallback ( )
virtual

Definition at line 65 of file btConvexConcaveCollisionAlgorithm.cpp.

Member Function Documentation

void btConvexTriangleCallback::clearCache ( )

Definition at line 73 of file btConvexConcaveCollisionAlgorithm.cpp.

void btConvexTriangleCallback::clearWrapperData ( )
inline

Definition at line 52 of file btConvexConcaveCollisionAlgorithm.h.

const btVector3& btConvexTriangleCallback::getAabbMax ( ) const
inline

Definition at line 67 of file btConvexConcaveCollisionAlgorithm.h.

const btVector3& btConvexTriangleCallback::getAabbMin ( ) const
inline

Definition at line 63 of file btConvexConcaveCollisionAlgorithm.h.

void btConvexTriangleCallback::processTriangle ( btVector3 triangle,
int  partId,
int  triangleIndex 
)
virtual

Implements btTriangleCallback.

Definition at line 79 of file btConvexConcaveCollisionAlgorithm.cpp.

void btConvexTriangleCallback::setTimeStepAndCounters ( btScalar  collisionMarginTriangle,
const btDispatcherInfo dispatchInfo,
const btCollisionObjectWrapper convexBodyWrap,
const btCollisionObjectWrapper triBodyWrap,
btManifoldResult resultOut 
)

Definition at line 157 of file btConvexConcaveCollisionAlgorithm.cpp.

Member Data Documentation

btVector3 btConvexTriangleCallback::m_aabbMax
private

Definition at line 35 of file btConvexConcaveCollisionAlgorithm.h.

btVector3 btConvexTriangleCallback::m_aabbMin
private

Definition at line 34 of file btConvexConcaveCollisionAlgorithm.h.

btScalar btConvexTriangleCallback::m_collisionMarginTriangle
private

Definition at line 41 of file btConvexConcaveCollisionAlgorithm.h.

const btCollisionObjectWrapper* btConvexTriangleCallback::m_convexBodyWrap
private

Definition at line 31 of file btConvexConcaveCollisionAlgorithm.h.

btDispatcher* btConvexTriangleCallback::m_dispatcher
private

Definition at line 39 of file btConvexConcaveCollisionAlgorithm.h.

const btDispatcherInfo* btConvexTriangleCallback::m_dispatchInfoPtr
private

Definition at line 40 of file btConvexConcaveCollisionAlgorithm.h.

btPersistentManifold* btConvexTriangleCallback::m_manifoldPtr

Definition at line 46 of file btConvexConcaveCollisionAlgorithm.h.

btManifoldResult* btConvexTriangleCallback::m_resultOut
private

Definition at line 38 of file btConvexConcaveCollisionAlgorithm.h.

int btConvexTriangleCallback::m_triangleCount

Definition at line 44 of file btConvexConcaveCollisionAlgorithm.h.

const btCollisionObjectWrapper* btConvexTriangleCallback::m_triBodyWrap
private

Definition at line 32 of file btConvexConcaveCollisionAlgorithm.h.


The documentation for this class was generated from the following files: