Bullet Collision Detection & Physics Library: btSoftRigidCollisionAlgorithm Class Reference

Bullet Collision Detection & Physics Library

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

btSoftRigidCollisionAlgorithm provides collision detection between btSoftBody and btRigidBody More...

`#include <btSoftRigidCollisionAlgorithm.h>`

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

## Classes
struct | CreateFunc

## Public Member Functions
| btSoftRigidCollisionAlgorithm (btPersistentManifold *mf, const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *col0, const btCollisionObjectWrapper *col1Wrap, bool isSwapped)
| TODO: include all the shapes that the softbody can collide with alternatively, implement special case collision algorithms (just like for rigid collision shapes) More...
virtual | ~btSoftRigidCollisionAlgorithm ()
virtual void | processCollision (const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
virtual btScalar | calculateTimeOfImpact (btCollisionObject *body0, btCollisionObject *body1, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
virtual void | getAllContactManifolds (btManifoldArray &manifoldArray)
Public Member Functions inherited from btCollisionAlgorithm
| btCollisionAlgorithm ()
| btCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci)
virtual | ~btCollisionAlgorithm ()

## Private Attributes
bool | m_isSwapped
| for rigid versus soft (instead of soft versus rigid), we use this swapped boolean More...

## Additional Inherited Members
Protected Attributes inherited from btCollisionAlgorithm
btDispatcher * | m_dispatcher

## Detailed Description

btSoftRigidCollisionAlgorithm provides collision detection between btSoftBody and btRigidBody

Definition at line 29 of file btSoftRigidCollisionAlgorithm.h.

## Constructor & Destructor Documentation

## ◆ btSoftRigidCollisionAlgorithm()

btSoftRigidCollisionAlgorithm::btSoftRigidCollisionAlgorithm | ( | btPersistentManifold * | mf,
|  | const btCollisionAlgorithmConstructionInfo & | ci,
|  | const btCollisionObjectWrapper * | col0,
|  | const btCollisionObjectWrapper * | col1Wrap,
|  | bool | isSwapped
| ) |  |

TODO: include all the shapes that the softbody can collide with alternatively, implement special case collision algorithms (just like for rigid collision shapes)

Definition at line 30 of file btSoftRigidCollisionAlgorithm.cpp.

## ◆ ~btSoftRigidCollisionAlgorithm()

btSoftRigidCollisionAlgorithm::~btSoftRigidCollisionAlgorithm | ( |  | ) |
| virtual

Definition at line 39 of file btSoftRigidCollisionAlgorithm.cpp.

## Member Function Documentation

## ◆ calculateTimeOfImpact()

btScalar btSoftRigidCollisionAlgorithm::calculateTimeOfImpact | ( | btCollisionObject * | body0,
|  | btCollisionObject * | body1,
|  | const btDispatcherInfo & | dispatchInfo,
|  | btManifoldResult * | resultOut
| ) |  |
| virtual

Implements btCollisionAlgorithm.

Definition at line 74 of file btSoftRigidCollisionAlgorithm.cpp.

## ◆ getAllContactManifolds()

virtual void btSoftRigidCollisionAlgorithm::getAllContactManifolds | ( | btManifoldArray & | manifoldArray | ) |
| inlinevirtual

Implements btCollisionAlgorithm.

Definition at line 50 of file btSoftRigidCollisionAlgorithm.h.

## ◆ processCollision()

void btSoftRigidCollisionAlgorithm::processCollision | ( | const btCollisionObjectWrapper * | body0Wrap,
|  | const btCollisionObjectWrapper * | body1Wrap,
|  | const btDispatcherInfo & | dispatchInfo,
|  | btManifoldResult * | resultOut
| ) |  |
| virtual

Implements btCollisionAlgorithm.

Definition at line 56 of file btSoftRigidCollisionAlgorithm.cpp.

## Member Data Documentation

## ◆ m_isSwapped

bool btSoftRigidCollisionAlgorithm::m_isSwapped
| private

for rigid versus soft (instead of soft versus rigid), we use this swapped boolean

Definition at line 38 of file btSoftRigidCollisionAlgorithm.h.

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

- btSoftRigidCollisionAlgorithm.h
- btSoftRigidCollisionAlgorithm.cpp