Bullet Collision Detection & Physics Library: btSoftBodyTriangleCallback Class Reference

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Private Attributes | List of all members
btSoftBodyTriangleCallback Class Reference

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

`#include <btSoftBodyConcaveCollisionAlgorithm.h>`

Inheritance diagram for btSoftBodyTriangleCallback:
[legend]
Collaboration diagram for btSoftBodyTriangleCallback:
[legend]

## Public Member Functions
| btSoftBodyTriangleCallback (btDispatcher *dispatcher, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
void | setTimeStepAndCounters (btScalar collisionMarginTriangle, const btCollisionObjectWrapper *triObjWrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
virtual | ~btSoftBodyTriangleCallback ()
virtual void | processTriangle (btVector3 *triangle, int partId, int triangleIndex)
void | clearCache ()
const btVector3 & | getAabbMin () const
const btVector3 & | getAabbMax () const
Public Member Functions inherited from btTriangleCallback
virtual | ~btTriangleCallback ()

## Public Attributes
int | m_triangleCount

## Private Attributes
btSoftBody * | m_softBody
const btCollisionObject * | m_triBody
btVector3 | m_aabbMin
btVector3 | m_aabbMax
btManifoldResult * | m_resultOut
btDispatcher * | m_dispatcher
const btDispatcherInfo * | m_dispatchInfoPtr
btScalar | m_collisionMarginTriangle
btHashMap< btHashKey< btTriIndex >, btTriIndex > | m_shapeCache

## Detailed Description

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

Definition at line 65 of file btSoftBodyConcaveCollisionAlgorithm.h.

## Constructor & Destructor Documentation

btSoftBodyTriangleCallback::btSoftBodyTriangleCallback | ( | btDispatcher * | dispatcher,
|  | const btCollisionObjectWrapper * | body0Wrap,
|  | const btCollisionObjectWrapper * | body1Wrap,
|  | bool | isSwapped
| ) |  |

Definition at line 52 of file btSoftBodyConcaveCollisionAlgorithm.cpp.

btSoftBodyTriangleCallback::~btSoftBodyTriangleCallback | ( |  | ) |
| virtual

Definition at line 67 of file btSoftBodyConcaveCollisionAlgorithm.cpp.

## Member Function Documentation

void btSoftBodyTriangleCallback::clearCache | ( |  | ) |

Definition at line 75 of file btSoftBodyConcaveCollisionAlgorithm.cpp.

const btVector3& btSoftBodyTriangleCallback::getAabbMax | ( |  | ) | const
| inline

Definition at line 100 of file btSoftBodyConcaveCollisionAlgorithm.h.

const btVector3& btSoftBodyTriangleCallback::getAabbMin | ( |  | ) | const
| inline

Definition at line 96 of file btSoftBodyConcaveCollisionAlgorithm.h.

void btSoftBodyTriangleCallback::processTriangle | ( | btVector3 * | triangle,
|  | int | partId,
|  | int | triangleIndex
| ) |  |
| virtual

debug drawing of the overlapping triangles

Implements btTriangleCallback.

Definition at line 89 of file btSoftBodyConcaveCollisionAlgorithm.cpp.

void btSoftBodyTriangleCallback::setTimeStepAndCounters | ( | btScalar | collisionMarginTriangle,
|  | const btCollisionObjectWrapper * | triObjWrap,
|  | const btDispatcherInfo & | dispatchInfo,
|  | btManifoldResult * | resultOut
| ) |  |

Definition at line 184 of file btSoftBodyConcaveCollisionAlgorithm.cpp.

## Member Data Documentation

btVector3 btSoftBodyTriangleCallback::m_aabbMax
| private

Definition at line 71 of file btSoftBodyConcaveCollisionAlgorithm.h.

btVector3 btSoftBodyTriangleCallback::m_aabbMin
| private

Definition at line 70 of file btSoftBodyConcaveCollisionAlgorithm.h.

btScalar btSoftBodyTriangleCallback::m_collisionMarginTriangle
| private

Definition at line 77 of file btSoftBodyConcaveCollisionAlgorithm.h.

btDispatcher* btSoftBodyTriangleCallback::m_dispatcher
| private

Definition at line 75 of file btSoftBodyConcaveCollisionAlgorithm.h.

const btDispatcherInfo* btSoftBodyTriangleCallback::m_dispatchInfoPtr
| private

Definition at line 76 of file btSoftBodyConcaveCollisionAlgorithm.h.

btManifoldResult* btSoftBodyTriangleCallback::m_resultOut
| private

Definition at line 73 of file btSoftBodyConcaveCollisionAlgorithm.h.

btHashMap<btHashKey<btTriIndex>,btTriIndex> btSoftBodyTriangleCallback::m_shapeCache
| private

Definition at line 79 of file btSoftBodyConcaveCollisionAlgorithm.h.

btSoftBody* btSoftBodyTriangleCallback::m_softBody
| private

Definition at line 67 of file btSoftBodyConcaveCollisionAlgorithm.h.

int btSoftBodyTriangleCallback::m_triangleCount

Definition at line 82 of file btSoftBodyConcaveCollisionAlgorithm.h.

const btCollisionObject* btSoftBodyTriangleCallback::m_triBody
| private

Definition at line 68 of file btSoftBodyConcaveCollisionAlgorithm.h.

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

- btSoftBodyConcaveCollisionAlgorithm.h
- btSoftBodyConcaveCollisionAlgorithm.cpp