Collision Algorithm for GImpact Shapes. More...
#include <btGImpactCollisionAlgorithm.h>
Collision Algorithm for GImpact Shapes.
For register this algorithm in Bullet, proceed as following:
btCollisionDispatcher * dispatcher = static_cast<btCollisionDispatcher *>(m_dynamicsWorld ->getDispatcher()); btGImpactCollisionAlgorithm::registerAlgorithm(dispatcher);
Definition at line 54 of file btGImpactCollisionAlgorithm.h.
btGImpactCollisionAlgorithm::btGImpactCollisionAlgorithm | ( | const btCollisionAlgorithmConstructionInfo & | ci, | |
const btCollisionObjectWrapper * | body0Wrap, | |||
const btCollisionObjectWrapper * | body1Wrap | |||
) |
Definition at line 196 of file btGImpactCollisionAlgorithm.cpp.
btGImpactCollisionAlgorithm::~btGImpactCollisionAlgorithm | ( | ) | [virtual] |
Definition at line 203 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::addContactPoint | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btVector3 & | point, | |||
const btVector3 & | normal, | |||
btScalar | distance | |||
) | [protected] |
Definition at line 212 of file btGImpactCollisionAlgorithm.cpp.
btScalar btGImpactCollisionAlgorithm::calculateTimeOfImpact | ( | btCollisionObject * | body0, | |
btCollisionObject * | body1, | |||
const btDispatcherInfo & | dispatchInfo, | |||
btManifoldResult * | resultOut | |||
) | [virtual] |
Implements btCollisionAlgorithm.
Definition at line 904 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::checkConvexAlgorithm | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap | |||
) | [inline, protected] |
Definition at line 130 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::checkManifold | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap | |||
) | [inline, protected] |
Definition at line 109 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::clearCache | ( | ) | [inline, protected] |
Definition at line 91 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::collide_gjk_triangles | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactMeshShapePart * | shape0, | |||
const btGImpactMeshShapePart * | shape1, | |||
const int * | pairs, | |||
int | pair_count | |||
) | [protected] |
Collision routines.
Definition at line 349 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::collide_sat_triangles | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactMeshShapePart * | shape0, | |||
const btGImpactMeshShapePart * | shape1, | |||
const int * | pairs, | |||
int | pair_count | |||
) | [protected] |
Definition at line 388 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::convex_vs_convex_collision | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btCollisionShape * | shape0, | |||
const btCollisionShape * | shape1 | |||
) | [protected] |
Definition at line 249 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::destroyContactManifolds | ( | ) | [inline, protected] |
Definition at line 84 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::destroyConvexAlgorithm | ( | ) | [inline, protected] |
Definition at line 74 of file btGImpactCollisionAlgorithm.h.
virtual void btGImpactCollisionAlgorithm::getAllContactManifolds | ( | btManifoldArray & | manifoldArray | ) | [inline, virtual] |
Implements btCollisionAlgorithm.
Definition at line 207 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::getFace0 | ( | ) | [inline] |
Definition at line 272 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::getFace1 | ( | ) | [inline] |
Definition at line 280 of file btGImpactCollisionAlgorithm.h.
btPersistentManifold* btGImpactCollisionAlgorithm::getLastManifold | ( | ) | [inline, protected] |
Definition at line 102 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::getPart0 | ( | ) | [inline] |
Definition at line 288 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::getPart1 | ( | ) | [inline] |
Definition at line 296 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::gimpact_vs_compoundshape | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactShapeInterface * | shape0, | |||
const btCompoundShape * | shape1, | |||
bool | swapped | |||
) |
Definition at line 685 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpact_vs_concave | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactShapeInterface * | shape0, | |||
const btConcaveShape * | shape1, | |||
bool | swapped | |||
) |
Definition at line 841 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpact_vs_gimpact | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactShapeInterface * | shape0, | |||
const btGImpactShapeInterface * | shape1 | |||
) |
Collides two gimpact shapes.
Definition at line 461 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpact_vs_gimpact_find_pairs | ( | const btTransform & | trans0, | |
const btTransform & | trans1, | |||
const btGImpactShapeInterface * | shape0, | |||
const btGImpactShapeInterface * | shape1, | |||
btPairSet & | pairset | |||
) | [protected] |
Definition at line 270 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpact_vs_shape | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactShapeInterface * | shape0, | |||
const btCollisionShape * | shape1, | |||
bool | swapped | |||
) |
Definition at line 565 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpact_vs_shape_find_pairs | ( | const btTransform & | trans0, | |
const btTransform & | trans1, | |||
const btGImpactShapeInterface * | shape0, | |||
const btCollisionShape * | shape1, | |||
btAlignedObjectArray< int > & | collided_primitives | |||
) | [protected] |
Definition at line 307 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::gimpacttrimeshpart_vs_plane_collision | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btGImpactMeshShapePart * | shape0, | |||
const btStaticPlaneShape * | shape1, | |||
bool | swapped | |||
) | [protected] |
Definition at line 725 of file btGImpactCollisionAlgorithm.cpp.
btManifoldResult* btGImpactCollisionAlgorithm::internalGetResultOut | ( | ) | [inline] |
Definition at line 213 of file btGImpactCollisionAlgorithm.h.
btCollisionAlgorithm* btGImpactCollisionAlgorithm::newAlgorithm | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap | |||
) | [inline, protected] |
Definition at line 120 of file btGImpactCollisionAlgorithm.h.
btPersistentManifold* btGImpactCollisionAlgorithm::newContactManifold | ( | const btCollisionObject * | body0, | |
const btCollisionObject * | body1 | |||
) | [inline, protected] |
Creates a new contact point.
Definition at line 68 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::processCollision | ( | const btCollisionObjectWrapper * | body0Wrap, | |
const btCollisionObjectWrapper * | body1Wrap, | |||
const btDispatcherInfo & | dispatchInfo, | |||
btManifoldResult * | resultOut | |||
) | [virtual] |
Implements btCollisionAlgorithm.
Definition at line 870 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::registerAlgorithm | ( | btCollisionDispatcher * | dispatcher | ) | [static] |
Use this function for register the algorithm externally.
Definition at line 915 of file btGImpactCollisionAlgorithm.cpp.
void btGImpactCollisionAlgorithm::setFace0 | ( | int | value | ) | [inline] |
Accessor/Mutator pairs for Part and triangleID.
Definition at line 268 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::setFace1 | ( | int | value | ) | [inline] |
Definition at line 276 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::setPart0 | ( | int | value | ) | [inline] |
Definition at line 284 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::setPart1 | ( | int | value | ) | [inline] |
Definition at line 292 of file btGImpactCollisionAlgorithm.h.
void btGImpactCollisionAlgorithm::shape_vs_shape_collision | ( | const btCollisionObjectWrapper * | body0, | |
const btCollisionObjectWrapper * | body1, | |||
const btCollisionShape * | shape0, | |||
const btCollisionShape * | shape1 | |||
) | [protected] |
Definition at line 225 of file btGImpactCollisionAlgorithm.cpp.
Definition at line 57 of file btGImpactCollisionAlgorithm.h.
const btDispatcherInfo* btGImpactCollisionAlgorithm::m_dispatchInfo [protected] |
Definition at line 60 of file btGImpactCollisionAlgorithm.h.
Definition at line 58 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::m_part0 [protected] |
Definition at line 62 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::m_part1 [protected] |
Definition at line 64 of file btGImpactCollisionAlgorithm.h.
btManifoldResult* btGImpactCollisionAlgorithm::m_resultOut [protected] |
Definition at line 59 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::m_triface0 [protected] |
Definition at line 61 of file btGImpactCollisionAlgorithm.h.
int btGImpactCollisionAlgorithm::m_triface1 [protected] |
Definition at line 63 of file btGImpactCollisionAlgorithm.h.