- Timestamp:
- Dec 17, 2008, 5:41:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/WorldEntity.cc
r2494 r2497 104 104 this->node_->removeAllChildren(); 105 105 106 if (this->physicalBody_) 107 { 108 this->deactivatePhysics(); 109 delete this->physicalBody_; 110 } 111 delete this->collisionShape_; 112 106 113 if (this->getScene()->getSceneManager()) 107 114 this->getScene()->getSceneManager()->destroySceneNode(this->node_->getName()); 108 109 // TODO: Detach from parent and detach all children.110 111 if (this->physicalBody_)112 {113 this->deactivatePhysics();114 delete this->physicalBody_;115 }116 delete this->collisionShape_;117 115 } 118 116 }
Note: See TracChangeset
for help on using the changeset viewer.