- Timestamp:
- Dec 13, 2008, 11:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btConvexShape.h
r2192 r2430 25 25 #include "LinearMath/btAlignedAllocator.h" 26 26 27 //todo: get rid of this btConvexCastResult thing!28 struct btConvexCastResult;29 27 #define MAX_PREFERRED_PENETRATION_DIRECTIONS 10 30 28 … … 39 37 BT_DECLARE_ALIGNED_ALLOCATOR(); 40 38 41 btConvexShape () 42 { 43 } 39 btConvexShape (); 44 40 45 virtual ~btConvexShape() 46 { 41 virtual ~btConvexShape(); 47 42 48 }43 virtual btVector3 localGetSupportingVertex(const btVector3& vec)const = 0; 49 44 50 51 virtual btVector3 localGetSupportingVertex(const btVector3& vec)const =0; 52 #ifndef __SPU__ 53 virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3& vec) const= 0; 54 55 //notice that the vectors should be unit length 56 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const= 0; 57 #endif //#ifndef __SPU__ 45 //////// 46 #ifndef __SPU__ 47 virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3& vec) const=0; 48 #endif //#ifndef __SPU__ 58 49 59 50 btVector3 localGetSupportVertexWithoutMarginNonVirtual (const btVector3& vec) const; … … 61 52 btScalar getMarginNonVirtual () const; 62 53 void getAabbNonVirtual (const btTransform& t, btVector3& aabbMin, btVector3& aabbMax) const; 54 55 56 //notice that the vectors should be unit length 57 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const= 0; 63 58 64 59 ///getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version … … 78 73 virtual void getPreferredPenetrationDirection(int index, btVector3& penetrationVector) const=0; 79 74 75 76 77 80 78 }; 81 79
Note: See TracChangeset
for help on using the changeset viewer.