Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h
r2192 r2430 22 22 class btDispatcher; 23 23 #include "btBroadphaseProxy.h" 24 24 25 class btOverlappingPairCache; 26 27 28 29 struct btBroadphaseRayCallback 30 { 31 ///added some cached data to accelerate ray-AABB tests 32 btVector3 m_rayDirectionInverse; 33 unsigned int m_signs[3]; 34 btScalar m_lambda_max; 35 36 virtual ~btBroadphaseRayCallback() {} 37 virtual bool process(const btBroadphaseProxy* proxy) = 0; 38 }; 25 39 26 40 #include "LinearMath/btVector3.h" … … 37 51 virtual void destroyProxy(btBroadphaseProxy* proxy,btDispatcher* dispatcher)=0; 38 52 virtual void setAabb(btBroadphaseProxy* proxy,const btVector3& aabbMin,const btVector3& aabbMax, btDispatcher* dispatcher)=0; 39 53 virtual void getAabb(btBroadphaseProxy* proxy,btVector3& aabbMin, btVector3& aabbMax ) const =0; 54 55 virtual void rayTest(const btVector3& rayFrom,const btVector3& rayTo, btBroadphaseRayCallback& rayCallback, const btVector3& aabbMin=btVector3(0,0,0), const btVector3& aabbMax = btVector3(0,0,0)) = 0; 56 40 57 ///calculateOverlappingPairs is optional: incremental algorithms (sweep and prune) might do it during the set aabb 41 58 virtual void calculateOverlappingPairs(btDispatcher* dispatcher)=0;
Note: See TracChangeset
for help on using the changeset viewer.