- Timestamp:
- Apr 1, 2013, 2:41:07 PM (12 years ago)
- Location:
- code/branches/core6/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r8706 r9612 37 37 namespace orxonox 38 38 { 39 WorldEntityCollisionShape::WorldEntityCollisionShape( WorldEntity* creator) : CompoundCollisionShape(creator)39 WorldEntityCollisionShape::WorldEntityCollisionShape(BaseObject* creator) : CompoundCollisionShape(creator) 40 40 { 41 41 RegisterObject(WorldEntityCollisionShape); 42 42 43 this->worldEntityOwner_ = creator;43 this->worldEntityOwner_ = NULL; 44 44 // suppress synchronisation 45 45 this->setSyncMode(ObjectDirection::None); -
code/branches/core6/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r5781 r9612 38 38 { 39 39 public: 40 WorldEntityCollisionShape( WorldEntity* creator);40 WorldEntityCollisionShape(BaseObject* creator); 41 41 virtual ~WorldEntityCollisionShape(); 42 42 43 inline WorldEntity* getWorldEntityOwner() 43 inline void setWorldEntityOwner(WorldEntity* worldEntityOwner) 44 { this->worldEntityOwner_ = worldEntityOwner; } 45 inline WorldEntity* getWorldEntityOwner() const 44 46 { return this->worldEntityOwner_; } 45 47 -
code/branches/core6/src/orxonox/worldentities/WorldEntity.cc
r8858 r9612 93 93 this->bPhysicsActiveBeforeAttaching_ = false; 94 94 this->collisionShape_ = new WorldEntityCollisionShape(this); 95 this->collisionShape_->setWorldEntityOwner(this); 95 96 this->collisionType_ = None; 96 97 this->collisionTypeSynchronised_ = None;
Note: See TracChangeset
for help on using the changeset viewer.