Bullet Collision Detection & Physics Library
|
btManifoldResult is a helper class to manage contact results. More...
#include <btManifoldResult.h>
Public Member Functions | |
btManifoldResult () | |
btManifoldResult (const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap) | |
virtual | ~btManifoldResult () |
void | setPersistentManifold (btPersistentManifold *manifoldPtr) |
const btPersistentManifold * | getPersistentManifold () const |
btPersistentManifold * | getPersistentManifold () |
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 btCollisionObjectWrapper * | getBody0Wrap () const |
const btCollisionObjectWrapper * | getBody1Wrap () const |
void | setBody0Wrap (const btCollisionObjectWrapper *obj0Wrap) |
void | setBody1Wrap (const btCollisionObjectWrapper *obj1Wrap) |
const btCollisionObject * | getBody0Internal () const |
const btCollisionObject * | getBody1Internal () const |
Public Member Functions inherited from btDiscreteCollisionDetectorInterface::Result | |
virtual | ~Result () |
virtual void | setShapeIdentifiersA (int partId0, int index0)=0 |
setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner More... | |
virtual void | setShapeIdentifiersB (int partId1, int index1)=0 |
virtual void | addContactPoint (const btVector3 &normalOnBInWorld, const btVector3 &pointInWorld, btScalar depth)=0 |
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... | |
static btScalar | calculateCombinedRollingFriction (const btCollisionObject *body0, const btCollisionObject *body1) |
static btScalar | calculateCombinedSpinningFriction (const btCollisionObject *body0, const btCollisionObject *body1) |
static btScalar | calculateCombinedContactDamping (const btCollisionObject *body0, const btCollisionObject *body1) |
static btScalar | calculateCombinedContactStiffness (const btCollisionObject *body0, const btCollisionObject *body1) |
Public Attributes | |
btScalar | m_closestPointDistanceThreshold |
Protected Attributes | |
btPersistentManifold * | m_manifoldPtr |
const btCollisionObjectWrapper * | m_body0Wrap |
const btCollisionObjectWrapper * | m_body1Wrap |
int | m_partId0 |
int | m_partId1 |
int | m_index0 |
int | m_index1 |
btManifoldResult is a helper class to manage contact results.
Definition at line 47 of file btManifoldResult.h.
|
inline |
Definition at line 60 of file btManifoldResult.h.
btManifoldResult::btManifoldResult | ( | const btCollisionObjectWrapper * | body0Wrap, |
const btCollisionObjectWrapper * | body1Wrap | ||
) |
Definition at line 89 of file btManifoldResult.cpp.
|
inlinevirtual |
Definition at line 75 of file btManifoldResult.h.
|
virtual |
Implements btDiscreteCollisionDetectorInterface::Result.
Reimplemented in btBridgedManifoldResult, and btPerturbedContactResult.
Definition at line 103 of file btManifoldResult.cpp.
|
static |
Definition at line 73 of file btManifoldResult.cpp.
|
static |
Definition at line 78 of file btManifoldResult.cpp.
|
static |
User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback;.
Definition at line 56 of file btManifoldResult.cpp.
|
static |
in the future we can let the user override the methods to combine restitution and friction
Definition at line 68 of file btManifoldResult.cpp.
|
static |
Definition at line 31 of file btManifoldResult.cpp.
|
static |
Definition at line 43 of file btManifoldResult.cpp.
|
inline |
Definition at line 142 of file btManifoldResult.h.
|
inline |
Definition at line 123 of file btManifoldResult.h.
|
inline |
Definition at line 147 of file btManifoldResult.h.
|
inline |
Definition at line 127 of file btManifoldResult.h.
|
inline |
Definition at line 86 of file btManifoldResult.h.
|
inline |
Definition at line 82 of file btManifoldResult.h.
|
inline |
Definition at line 105 of file btManifoldResult.h.
|
inline |
Definition at line 132 of file btManifoldResult.h.
|
inline |
Definition at line 137 of file btManifoldResult.h.
|
inline |
Definition at line 77 of file btManifoldResult.h.
|
inlinevirtual |
setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner
Implements btDiscreteCollisionDetectorInterface::Result.
Definition at line 91 of file btManifoldResult.h.
|
inlinevirtual |
Implements btDiscreteCollisionDetectorInterface::Result.
Definition at line 97 of file btManifoldResult.h.
|
protected |
Definition at line 52 of file btManifoldResult.h.
|
protected |
Definition at line 53 of file btManifoldResult.h.
btScalar btManifoldResult::m_closestPointDistanceThreshold |
Definition at line 152 of file btManifoldResult.h.
|
protected |
Definition at line 56 of file btManifoldResult.h.
|
protected |
Definition at line 57 of file btManifoldResult.h.
|
protected |
Definition at line 50 of file btManifoldResult.h.
|
protected |
Definition at line 54 of file btManifoldResult.h.
|
protected |
Definition at line 55 of file btManifoldResult.h.