Bullet Collision Detection & Physics Library
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
btManifoldResult Class Reference

btManifoldResult is a helper class to manage contact results. More...

#include <btManifoldResult.h>

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

Public Member Functions

 btManifoldResult ()
 
 btManifoldResult (const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
 
virtual ~btManifoldResult ()
 
void setPersistentManifold (btPersistentManifold *manifoldPtr)
 
const btPersistentManifoldgetPersistentManifold () const
 
btPersistentManifoldgetPersistentManifold ()
 
virtual void setShapeIdentifiersA (int partId0, int index0)
 setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner More...
 
virtual void setShapeIdentifiersB (int partId1, int index1)
 
virtual void addContactPoint (const btVector3 &normalOnBInWorld, const btVector3 &pointInWorld, btScalar depth)
 
void refreshContactPoints ()
 
const btCollisionObjectWrappergetBody0Wrap () const
 
const btCollisionObjectWrappergetBody1Wrap () const
 
void setBody0Wrap (const btCollisionObjectWrapper *obj0Wrap)
 
void setBody1Wrap (const btCollisionObjectWrapper *obj1Wrap)
 
const btCollisionObjectgetBody0Internal () const
 
const btCollisionObjectgetBody1Internal () const
 
- Public Member Functions inherited from btDiscreteCollisionDetectorInterface::Result
virtual ~Result ()
 

Static Public Member Functions

static btScalar calculateCombinedRestitution (const btCollisionObject *body0, const btCollisionObject *body1)
 in the future we can let the user override the methods to combine restitution and friction More...
 
static btScalar calculateCombinedFriction (const btCollisionObject *body0, const btCollisionObject *body1)
 User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback;. More...
 

Protected Attributes

btPersistentManifoldm_manifoldPtr
 
const btCollisionObjectWrapperm_body0Wrap
 
const btCollisionObjectWrapperm_body1Wrap
 
int m_partId0
 
int m_partId1
 
int m_index0
 
int m_index1
 

Detailed Description

btManifoldResult is a helper class to manage contact results.

Definition at line 39 of file btManifoldResult.h.

Constructor & Destructor Documentation

btManifoldResult::btManifoldResult ( )
inline

Definition at line 55 of file btManifoldResult.h.

btManifoldResult::btManifoldResult ( const btCollisionObjectWrapper body0Wrap,
const btCollisionObjectWrapper body1Wrap 
)

Definition at line 63 of file btManifoldResult.cpp.

virtual btManifoldResult::~btManifoldResult ( )
inlinevirtual

Definition at line 68 of file btManifoldResult.h.

Member Function Documentation

void btManifoldResult::addContactPoint ( const btVector3 normalOnBInWorld,
const btVector3 pointInWorld,
btScalar  depth 
)
virtual
btScalar btManifoldResult::calculateCombinedFriction ( const btCollisionObject body0,
const btCollisionObject body1 
)
static

User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback;.

Definition at line 43 of file btManifoldResult.cpp.

btScalar btManifoldResult::calculateCombinedRestitution ( const btCollisionObject body0,
const btCollisionObject body1 
)
static

in the future we can let the user override the methods to combine restitution and friction

Definition at line 56 of file btManifoldResult.cpp.

const btCollisionObject* btManifoldResult::getBody0Internal ( ) const
inline

Definition at line 135 of file btManifoldResult.h.

const btCollisionObjectWrapper* btManifoldResult::getBody0Wrap ( ) const
inline

Definition at line 116 of file btManifoldResult.h.

const btCollisionObject* btManifoldResult::getBody1Internal ( ) const
inline

Definition at line 140 of file btManifoldResult.h.

const btCollisionObjectWrapper* btManifoldResult::getBody1Wrap ( ) const
inline

Definition at line 120 of file btManifoldResult.h.

const btPersistentManifold* btManifoldResult::getPersistentManifold ( ) const
inline

Definition at line 75 of file btManifoldResult.h.

btPersistentManifold* btManifoldResult::getPersistentManifold ( )
inline

Definition at line 79 of file btManifoldResult.h.

void btManifoldResult::refreshContactPoints ( )
inline

Definition at line 99 of file btManifoldResult.h.

void btManifoldResult::setBody0Wrap ( const btCollisionObjectWrapper obj0Wrap)
inline

Definition at line 125 of file btManifoldResult.h.

void btManifoldResult::setBody1Wrap ( const btCollisionObjectWrapper obj1Wrap)
inline

Definition at line 130 of file btManifoldResult.h.

void btManifoldResult::setPersistentManifold ( btPersistentManifold manifoldPtr)
inline

Definition at line 70 of file btManifoldResult.h.

virtual void btManifoldResult::setShapeIdentifiersA ( int  partId0,
int  index0 
)
inlinevirtual

setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner

Implements btDiscreteCollisionDetectorInterface::Result.

Definition at line 84 of file btManifoldResult.h.

virtual void btManifoldResult::setShapeIdentifiersB ( int  partId1,
int  index1 
)
inlinevirtual

Implements btDiscreteCollisionDetectorInterface::Result.

Definition at line 90 of file btManifoldResult.h.

Member Data Documentation

const btCollisionObjectWrapper* btManifoldResult::m_body0Wrap
protected

Definition at line 45 of file btManifoldResult.h.

const btCollisionObjectWrapper* btManifoldResult::m_body1Wrap
protected

Definition at line 46 of file btManifoldResult.h.

int btManifoldResult::m_index0
protected

Definition at line 49 of file btManifoldResult.h.

int btManifoldResult::m_index1
protected

Definition at line 50 of file btManifoldResult.h.

btPersistentManifold* btManifoldResult::m_manifoldPtr
protected

Definition at line 43 of file btManifoldResult.h.

int btManifoldResult::m_partId0
protected

Definition at line 47 of file btManifoldResult.h.

int btManifoldResult::m_partId1
protected

Definition at line 48 of file btManifoldResult.h.


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