16 #ifndef BT_SIMPLE_BROADPHASE_H 17 #define BT_SIMPLE_BROADPHASE_H 30 :
btBroadphaseProxy(minpt, maxpt, userPtr, collisionFilterGroup, collisionFilterMask)
55 btAssert(m_numHandles < m_maxHandles);
56 int freeHandle = m_firstFreeHandle;
57 m_firstFreeHandle = m_pHandles[freeHandle].
GetNextFree();
59 if (freeHandle > m_LastHandleIndex)
61 m_LastHandleIndex = freeHandle;
68 int handle = int(proxy - m_pHandles);
69 btAssert(handle >= 0 && handle < m_maxHandles);
70 if (handle == m_LastHandleIndex)
75 m_firstFreeHandle = handle;
113 virtual void calculateOverlappingPairs(
btDispatcher* dispatcher);
148 #endif //BT_SIMPLE_BROADPHASE_H btSimpleBroadphaseProxy * m_pHandles
btSimpleBroadphaseProxy()
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
void freeHandle(btSimpleBroadphaseProxy *proxy)
btSimpleBroadphaseProxy * getSimpleProxyFromProxy(btBroadphaseProxy *proxy)
#define SIMD_FORCE_INLINE
void SetNextFree(int next)
The btOverlappingPairCache provides an interface for overlapping pair management (add, remove, storage), used by the btBroadphaseInterface broadphases.
btOverlappingPairCache * m_pairCache
virtual void getBroadphaseAabb(btVector3 &aabbMin, btVector3 &aabbMax) const
getAabb returns the axis aligned bounding box in the 'global' coordinate frame will add some transfor...
The btBroadphaseInterface class provides an interface to detect aabb-overlapping object pairs...
btSimpleBroadphaseProxy(const btVector3 &minpt, const btVector3 &maxpt, int shapeType, void *userPtr, int collisionFilterGroup, int collisionFilterMask)
The btBroadphaseProxy is the main class that can be used with the Bullet broadphases.
const btSimpleBroadphaseProxy * getSimpleProxyFromProxy(btBroadphaseProxy *proxy) const
btVector3 can be used to represent 3D points and vectors.
const btOverlappingPairCache * getOverlappingPairCache() const
virtual void printStats()
The SimpleBroadphase is just a unit-test for btAxisSweep3, bt32BitAxisSweep3, or btDbvtBroadphase, so use those classes instead.
btOverlappingPairCache * getOverlappingPairCache()
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...