- Timestamp:
- Dec 11, 2008, 1:54:35 PM (16 years ago)
- Location:
- code/branches/physics/src/orxonox/objects/collisionshapes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/collisionshapes/CompoundCollisionShape.cc
r2403 r2407 72 72 } 73 73 74 void CompoundCollisionShape::addChildShape(CollisionShape* shape )74 void CompoundCollisionShape::addChildShape(CollisionShape* shape, bool bWorldEntityRoot) 75 75 { 76 76 if (!shape) … … 97 97 98 98 // network synchro 99 shape->setParent(this, this->getObjectID()); 99 if (!bWorldEntityRoot) 100 shape->setParent(this, this->getObjectID()); 100 101 } 101 102 -
code/branches/physics/src/orxonox/objects/collisionshapes/CompoundCollisionShape.h
r2403 r2407 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 46 47 void addChildShape(CollisionShape* shape );47 void addChildShape(CollisionShape* shape, bool bWorldEntityRoot = false); 48 48 CollisionShape* getChildShape(unsigned int index) const; 49 49
Note: See TracChangeset
for help on using the changeset viewer.