Changeset 10003 for code/branches/modularships/src/orxonox/collisionshapes
- Timestamp:
- Mar 20, 2014, 3:46:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/modularships/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r9997 r10003 39 39 #include "core/XMLPort.h" 40 40 #include "tools/BulletConversions.h" 41 42 #include "collisionshapes/WorldEntityCollisionShape.h" 41 43 42 44 namespace orxonox … … 118 120 this->updatePublicShape(); 119 121 } 122 123 // If the shape to be attached is not a CompoundCollisionShape (thus an actual physical shape) & this is a WorldEntity's CollisionShape, 124 // set it's userPointer to the WorldEntity this CompoundCollisionShape belongs to. 125 if (!orxonox_cast<CompoundCollisionShape*>(shape) && orxonox_cast<WorldEntityCollisionShape*>(this)) 126 shape->getCollisionShape()->setUserPointer(orxonox_cast<WorldEntityCollisionShape*>(this)->getWorldEntityOwner()); 120 127 } 121 128
Note: See TracChangeset
for help on using the changeset viewer.