Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionShapes/btCompoundShape.h
- 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/btCompoundShape.h
r2192 r2430 47 47 } 48 48 49 /// btCompoundShape allows to store multiple other btCollisionShapes49 /// The btCompoundShape allows to store multiple other btCollisionShapes 50 50 /// This allows for moving concave collision objects. This is more general then the static concave btBvhTriangleMeshShape. 51 /// It has an (optional) dynamic aabb tree to accelerate early rejection tests. 52 /// @todo: This aabb tree can also be use to speed up ray tests on btCompoundShape, see http://code.google.com/p/bullet/issues/detail?id=25 53 /// Currently, removal of child shapes is only supported when disabling the aabb tree (pass 'false' in the constructor of btCompoundShape) 51 54 ATTRIBUTE_ALIGNED16(class) btCompoundShape : public btCollisionShape 52 55 { 53 //btAlignedObjectArray<btTransform> m_childTransforms;54 //btAlignedObjectArray<btCollisionShape*> m_childShapes;55 56 btAlignedObjectArray<btCompoundShapeChild> m_children; 56 57 btVector3 m_localAabbMin; 57 58 btVector3 m_localAabbMax; 58 59 59 //btOptimizedBvh* m_aabbTree;60 60 btDbvt* m_dynamicAabbTree; 61 61 … … 63 63 BT_DECLARE_ALIGNED_ALLOCATOR(); 64 64 65 btCompoundShape( );65 btCompoundShape(bool enableDynamicAabbTree = true); 66 66 67 67 virtual ~btCompoundShape(); … … 89 89 } 90 90 91 btTransform getChildTransform(int index)91 btTransform& getChildTransform(int index) 92 92 { 93 93 return m_children[index].m_transform; 94 94 } 95 const btTransform getChildTransform(int index) const95 const btTransform& getChildTransform(int index) const 96 96 { 97 97 return m_children[index].m_transform; 98 98 } 99 100 ///set a new transform for a child, and update internal data structures (local aabb and dynamic tree) 101 void updateChildTransform(int childIndex, const btTransform& newChildTransform); 99 102 100 103
Note: See TracChangeset
for help on using the changeset viewer.