- Timestamp:
- Nov 29, 2008, 12:25:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/tools/ParticleInterface.cc
r2087 r2296 56 56 57 57 this->scenemanager_ = scenemanager; 58 this->sceneNode_ = 0;59 58 60 59 this->bEnabled_ = true; … … 72 71 { 73 72 this->particleSystem_->removeAllEmitters(); 74 this->detachFromSceneNode();75 73 this->scenemanager_->destroyParticleSystem(particleSystem_); 76 }77 78 void ParticleInterface::addToSceneNode(Ogre::SceneNode* sceneNode)79 {80 if (this->sceneNode_)81 this->detachFromSceneNode();82 83 this->sceneNode_ = sceneNode;84 this->sceneNode_->attachObject(this->particleSystem_);85 }86 87 void ParticleInterface::detachFromSceneNode()88 {89 if (this->sceneNode_)90 {91 this->sceneNode_->detachObject(this->particleSystem_);92 this->sceneNode_ = 0;93 }94 74 } 95 75
Note: See TracChangeset
for help on using the changeset viewer.