16 #ifndef BT_SIMPLE_BROADPHASE_H 17 #define BT_SIMPLE_BROADPHASE_H 65 btAssert(m_numHandles < m_maxHandles);
66 int freeHandle = m_firstFreeHandle;
67 m_firstFreeHandle = m_pHandles[freeHandle].
GetNextFree();
69 if(freeHandle > m_LastHandleIndex)
71 m_LastHandleIndex = freeHandle;
78 int handle = int(proxy-m_pHandles);
79 btAssert(handle >= 0 && handle < m_maxHandles);
80 if(handle == m_LastHandleIndex)
85 m_firstFreeHandle = handle;
132 virtual void calculateOverlappingPairs(
btDispatcher* dispatcher);
170 #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 ...