Logo Search packages:      
Sourcecode: blender version File versions  Download package

btCollisionWorld Class Reference

#include <btCollisionWorld.h>

Inheritance diagram for btCollisionWorld:

btDynamicsWorld btDiscreteDynamicsWorld btSimpleDynamicsWorld

List of all members.


Detailed Description

CollisionWorld is interface and container for the collision detection.

Definition at line 79 of file btCollisionWorld.h.


Public Member Functions

void addCollisionObject (btCollisionObject *collisionObject, short int collisionFilterGroup=1, short int collisionFilterMask=1)
 btCollisionWorld (btDispatcher *dispatcher, btOverlappingPairCache *pairCache, int stackSize=2 *1024 *1024)
btBroadphaseInterfacegetBroadphase ()
const btCollisionObjectArraygetCollisionObjectArray () const
btCollisionObjectArraygetCollisionObjectArray ()
btDispatchergetDispatcher ()
btDispatcherInfo & getDispatchInfo ()
int getNumCollisionObjects () const
btOverlappingPairCachegetPairCache ()
virtual void performDiscreteCollisionDetection ()
void rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, RayResultCallback &resultCallback, short int collisionFilterMask=-1)
void removeCollisionObject (btCollisionObject *collisionObject)

Static Public Member Functions

static void objectQuerySingle (const btConvexShape *castShape, const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, RayResultCallback &resultCallback, short int collisionFilterMask=-1)
 objectQuerySingle performs a collision detection query and calls the resultCallback. It is used internally by rayTest.
static void rayTestSingle (const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, RayResultCallback &resultCallback, short int collisionFilterMask=-1)

Protected Attributes

btOverlappingPairCachem_broadphasePairCache
btAlignedObjectArray
< btCollisionObject * > 
m_collisionObjects
btDispatcherm_dispatcher1
btDispatcherInfo m_dispatchInfo
bool m_ownsBroadphasePairCache
bool m_ownsDispatcher
btStackAllocm_stackAlloc

Classes

struct  ClosestRayResultCallback
struct  LocalRayResult
struct  LocalShapeInfo
struct  RayResultCallback
 RayResultCallback is used to report new raycast results. More...

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

Generated by  Doxygen 1.6.0   Back to index