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

btSphereSphereCollisionAlgorithm provides sphere-sphere collision detection. More...

#include <btSphereTriangleCollisionAlgorithm.h>

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

Classes

struct  CreateFunc
 

Public Member Functions

 btSphereTriangleCollisionAlgorithm (btPersistentManifold *mf, const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool swapped)
 
 btSphereTriangleCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci)
 
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)
 
virtual ~btSphereTriangleCollisionAlgorithm ()
 
- Public Member Functions inherited from btActivatingCollisionAlgorithm
 btActivatingCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci)
 
 btActivatingCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
 
virtual ~btActivatingCollisionAlgorithm ()
 
- Public Member Functions inherited from btCollisionAlgorithm
 btCollisionAlgorithm ()
 
 btCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci)
 
virtual ~btCollisionAlgorithm ()
 

Private Attributes

bool m_ownManifold
 
btPersistentManifoldm_manifoldPtr
 
bool m_swapped
 

Additional Inherited Members

- Protected Attributes inherited from btCollisionAlgorithm
btDispatcherm_dispatcher
 

Detailed Description

btSphereSphereCollisionAlgorithm provides sphere-sphere collision detection.

Other features are frame-coherency (persistent data) and collision response. Also provides the most basic sample for custom/user btCollisionAlgorithm

Definition at line 28 of file btSphereTriangleCollisionAlgorithm.h.

Constructor & Destructor Documentation

btSphereTriangleCollisionAlgorithm::btSphereTriangleCollisionAlgorithm ( btPersistentManifold mf,
const btCollisionAlgorithmConstructionInfo ci,
const btCollisionObjectWrapper body0Wrap,
const btCollisionObjectWrapper body1Wrap,
bool  swapped 
)

Definition at line 24 of file btSphereTriangleCollisionAlgorithm.cpp.

btSphereTriangleCollisionAlgorithm::btSphereTriangleCollisionAlgorithm ( const btCollisionAlgorithmConstructionInfo ci)
inline

Definition at line 37 of file btSphereTriangleCollisionAlgorithm.h.

btSphereTriangleCollisionAlgorithm::~btSphereTriangleCollisionAlgorithm ( )
virtual

Definition at line 37 of file btSphereTriangleCollisionAlgorithm.cpp.

Member Function Documentation

btScalar btSphereTriangleCollisionAlgorithm::calculateTimeOfImpact ( btCollisionObject body0,
btCollisionObject body1,
const btDispatcherInfo dispatchInfo,
btManifoldResult resultOut 
)
virtual

Implements btCollisionAlgorithm.

Definition at line 75 of file btSphereTriangleCollisionAlgorithm.cpp.

virtual void btSphereTriangleCollisionAlgorithm::getAllContactManifolds ( btManifoldArray manifoldArray)
inlinevirtual

Implements btCollisionAlgorithm.

Definition at line 44 of file btSphereTriangleCollisionAlgorithm.h.

void btSphereTriangleCollisionAlgorithm::processCollision ( const btCollisionObjectWrapper body0Wrap,
const btCollisionObjectWrapper body1Wrap,
const btDispatcherInfo dispatchInfo,
btManifoldResult resultOut 
)
virtual

report a contact. internally this will be kept persistent, and contact reduction is done

Implements btCollisionAlgorithm.

Definition at line 46 of file btSphereTriangleCollisionAlgorithm.cpp.

Member Data Documentation

btPersistentManifold* btSphereTriangleCollisionAlgorithm::m_manifoldPtr
private

Definition at line 31 of file btSphereTriangleCollisionAlgorithm.h.

bool btSphereTriangleCollisionAlgorithm::m_ownManifold
private

Definition at line 30 of file btSphereTriangleCollisionAlgorithm.h.

bool btSphereTriangleCollisionAlgorithm::m_swapped
private

Definition at line 32 of file btSphereTriangleCollisionAlgorithm.h.


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