Changeset 1972 for code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h
- Timestamp:
- Oct 20, 2008, 5:40:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h
r1963 r1972 32 32 bool m_isLocalAabbValid; 33 33 34 btPolyhedralConvexShape(); 34 35 public: 35 36 36 btPolyhedralConvexShape();37 37 38 38 39 //brute force implementations 39 40 40 virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3& vec)const; 41 41 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3* vectors,btVector3* supportVerticesOut,int numVectors) const; 42 43 42 44 43 virtual void calculateLocalInertia(btScalar mass,btVector3& inertia) const; 45 44 46 47 void setCachedLocalAabb (const btVector3& aabbMin, const btVector3& aabbMax)48 {49 m_isLocalAabbValid = true;50 m_localAabbMin = aabbMin;51 m_localAabbMax = aabbMax;52 }53 54 inline void getCachedLocalAabb (btVector3& aabbMin, btVector3& aabbMax) const55 {56 btAssert(m_isLocalAabbValid);57 aabbMin = m_localAabbMin;58 aabbMax = m_localAabbMax;59 }60 45 61 46 inline void getNonvirtualAabb(const btTransform& trans,btVector3& aabbMin,btVector3& aabbMax, btScalar margin) const
Note: See TracChangeset
for help on using the changeset viewer.