|
| | btCollisionWorld (btDispatcher *dispatcher, btBroadphaseInterface *broadphasePairCache, btCollisionConfiguration *collisionConfiguration) |
| | for debug drawing
|
| |
| virtual | ~btCollisionWorld () |
| |
| void | setBroadphase (btBroadphaseInterface *pairCache) |
| |
| const btBroadphaseInterface * | getBroadphase () const |
| |
| btBroadphaseInterface * | getBroadphase () |
| |
| btOverlappingPairCache * | getPairCache () |
| |
| btDispatcher * | getDispatcher () |
| |
| const btDispatcher * | getDispatcher () const |
| |
| void | updateSingleAabb (btCollisionObject *colObj) |
| |
| virtual void | updateAabbs () |
| |
| virtual void | computeOverlappingPairs () |
| | the computeOverlappingPairs is usually already called by performDiscreteCollisionDetection (or stepSimulation) it can be useful to use if you perform ray tests without collision detection/simulation
|
| |
| virtual void | setDebugDrawer (btIDebugDraw *debugDrawer) |
| |
| virtual btIDebugDraw * | getDebugDrawer () |
| |
| virtual void | debugDrawWorld () |
| |
| virtual void | debugDrawObject (const btTransform &worldTransform, const btCollisionShape *shape, const btVector3 &color) |
| |
| int | getNumCollisionObjects () const |
| |
| virtual void | rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, RayResultCallback &resultCallback) const |
| | rayTest performs a raycast on all objects in the btCollisionWorld, and calls the resultCallback This allows for several queries: first hit, all hits, any hit, dependent on the value returned by the callback.
|
| |
| void | convexSweepTest (const btConvexShape *castShape, const btTransform &from, const btTransform &to, ConvexResultCallback &resultCallback, btScalar allowedCcdPenetration=btScalar(0.)) const |
| | convexTest performs a swept convex cast on all objects in the btCollisionWorld, and calls the resultCallback This allows for several queries: first hit, all hits, any hit, dependent on the value return by the callback.
|
| |
| void | contactTest (btCollisionObject *colObj, ContactResultCallback &resultCallback) |
| | contactTest performs a discrete collision test between colObj against all objects in the btCollisionWorld, and calls the resultCallback.
|
| |
| void | contactPairTest (btCollisionObject *colObjA, btCollisionObject *colObjB, ContactResultCallback &resultCallback) |
| | contactTest performs a discrete collision test between two collision objects and calls the resultCallback if overlap if detected.
|
| |
| virtual void | addCollisionObject (btCollisionObject *collisionObject, int collisionFilterGroup=btBroadphaseProxy::DefaultFilter, int collisionFilterMask=btBroadphaseProxy::AllFilter) |
| |
| btCollisionObjectArray & | getCollisionObjectArray () |
| |
| const btCollisionObjectArray & | getCollisionObjectArray () const |
| |
| virtual void | removeCollisionObject (btCollisionObject *collisionObject) |
| |
| virtual void | performDiscreteCollisionDetection () |
| |
| btDispatcherInfo & | getDispatchInfo () |
| |
| const btDispatcherInfo & | getDispatchInfo () const |
| |
| bool | getForceUpdateAllAabbs () const |
| |
| void | setForceUpdateAllAabbs (bool forceUpdateAllAabbs) |
| |
| virtual void | serialize (btSerializer *serializer) |
| | Preliminary serialization test for Bullet 2.76. Loading those files requires a separate parser (Bullet/Demos/SerializeDemo)
|
| |
CollisionWorld is interface and container for the collision detection.
Definition at line 88 of file btCollisionWorld.h.
convexTest performs a swept convex cast on all objects in the btCollisionWorld, and calls the resultCallback This allows for several queries: first hit, all hits, any hit, dependent on the value return by the callback.
use the broadphase to accelerate the search for objects, based on their aabb and for each object with ray-aabb overlap, perform an exact ray test unfortunately the implementation for rayTest and convexSweepTest duplicated, albeit practically identical
Definition at line 1086 of file btCollisionWorld.cpp.
rayTest performs a raycast on all objects in the btCollisionWorld, and calls the resultCallback This allows for several queries: first hit, all hits, any hit, dependent on the value returned by the callback.
use the broadphase to accelerate the search for objects, based on their aabb and for each object with ray-aabb overlap, perform an exact ray test
Reimplemented in btSoftMultiBodyDynamicsWorld, and btSoftRigidDynamicsWorld.
Definition at line 1008 of file btCollisionWorld.cpp.