- Timestamp:
- Mar 31, 2009, 8:05:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/bullet/BulletCollision/BroadphaseCollision/btAxisSweep3.h
r2662 r2882 43 43 public: 44 44 45 BT_DECLARE_ALIGNED_ALLOCATOR(); 45 46 46 47 class Edge … … 139 140 SIMD_FORCE_INLINE Handle* getHandle(BP_FP_INT_TYPE index) const {return m_pHandles + index;} 140 141 141 v oid resetPool();142 virtual void resetPool(btDispatcher* dispatcher); 142 143 143 144 void processAllOverlappingPairs(btOverlapCallback* callback); … … 221 222 222 223 if (checkCardinality) 223 assert(numEdges == m_numHandles*2+1);224 btAssert(numEdges == m_numHandles*2+1); 224 225 } 225 226 #endif //DEBUG_BROADPHASE … … 347 348 } 348 349 349 // assert(bounds.HasVolume());350 //btAssert(bounds.HasVolume()); 350 351 351 352 // init bounds … … 453 454 BP_FP_INT_TYPE btAxisSweep3Internal<BP_FP_INT_TYPE>::allocHandle() 454 455 { 455 assert(m_firstFreeHandle);456 btAssert(m_firstFreeHandle); 456 457 457 458 BP_FP_INT_TYPE handle = m_firstFreeHandle; … … 465 466 void btAxisSweep3Internal<BP_FP_INT_TYPE>::freeHandle(BP_FP_INT_TYPE handle) 466 467 { 467 assert(handle > 0 && handle < m_maxHandles);468 btAssert(handle > 0 && handle < m_maxHandles); 468 469 469 470 getHandle(handle)->SetNextFree(m_firstFreeHandle); … … 588 589 589 590 template <typename BP_FP_INT_TYPE> 590 void btAxisSweep3Internal<BP_FP_INT_TYPE>::resetPool( )591 void btAxisSweep3Internal<BP_FP_INT_TYPE>::resetPool(btDispatcher* dispatcher) 591 592 { 592 593 if (m_numHandles == 0) … … 642 643 if (!isDuplicate) 643 644 { 645 ///important to use an AABB test that is consistent with the broadphase 644 646 bool hasOverlap = testAabbOverlap(pair.m_pProxy0,pair.m_pProxy1); 645 647 … … 687 689 } 688 690 689 690 691 692 693 691 } 694 692 … … 731 729 void btAxisSweep3Internal<BP_FP_INT_TYPE>::updateHandle(BP_FP_INT_TYPE handle, const btVector3& aabbMin,const btVector3& aabbMax,btDispatcher* dispatcher) 732 730 { 733 // assert(bounds.IsFinite());734 // assert(bounds.HasVolume());731 // btAssert(bounds.IsFinite()); 732 //btAssert(bounds.HasVolume()); 735 733 736 734 Handle* pHandle = getHandle(handle);
Note: See TracChangeset
for help on using the changeset viewer.