Changeset 2423 for code/branches/physics/src/orxonox/objects/collisionshapes/CompoundCollisionShape.h
- Timestamp:
- Dec 13, 2008, 4:14:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/collisionshapes/CompoundCollisionShape.h
r2407 r2423 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 46 47 void addChildShape(CollisionShape* shape, bool bWorldEntityRoot = false); 47 void addChildShape(CollisionShape* shape); 48 void removeChildShape(CollisionShape* shape); 49 void removeAllChildShapes(); 48 50 CollisionShape* getChildShape(unsigned int index) const; 49 51 50 v irtual btCollisionShape* getCollisionShape() const;52 void updateChildShape(CollisionShape* shape); 51 53 52 inline bool empty() const53 { return this->childShapes_.size() == 0; }54 protected: 55 virtual void updateParent(); 54 56 55 57 private: 56 btCompoundShape* compoundShape_; 57 std::vector<CollisionShape*> childShapes_; 58 void updatePublicShape(); 59 60 btCompoundShape* compoundShape_; 61 std::map<CollisionShape*, btCollisionShape*> childShapes_; 58 62 }; 59 63 }
Note: See TracChangeset
for help on using the changeset viewer.