Changeset 10204
- Timestamp:
- Jan 25, 2015, 11:32:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10203 r10204 39 39 #include "core/XMLPort.h" 40 40 #include "tools/BulletConversions.h" 41 42 #include "collisionshapes/WorldEntityCollisionShape.h"43 41 44 42 namespace orxonox … … 120 118 this->updatePublicShape(); 121 119 } 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());127 120 } 128 121
Note: See TracChangeset
for help on using the changeset viewer.