- Timestamp:
- Dec 17, 2008, 5:41:29 AM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/Camera.cc
r2493 r2497 112 112 this->cameraNode_->translate(coeff * offset); 113 113 114 this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->getWorldOrientation(), this->getWorldOrientation(), false));114 this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->getWorldOrientation(), this->getWorldOrientation(), true)); 115 115 //this->cameraNode_->setOrientation(this->getWorldOrientation()); 116 116 } -
code/branches/presentation/src/orxonox/objects/worldentities/ParticleEmitter.cc
r2485 r2497 102 102 { 103 103 if (this->particles_) 104 { 104 105 delete this->particles_; 106 this->particles_ = 0; 107 } 105 108 106 109 if (this->getScene() && this->getScene()->getSceneManager()) … … 119 122 } 120 123 } 121 else122 this->particles_ = 0;123 124 } 124 125 -
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.