Changeset 10755
- Timestamp:
- Nov 2, 2015, 3:56:46 PM (9 years ago)
- Location:
- code/branches/explosionChunksHS15/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/explosionChunksHS15/src/orxonox/worldentities/ExplosionPart.cc
r10752 r10755 48 48 this->explosionEntity_ = new MovableEntity(this->getContext()); 49 49 50 51 50 52 } 51 53 … … 69 71 orxout() << getEffect() << endl; 70 72 71 this-> explosionEntity_->setSyncMode(0);73 this->model_->setVisible(true); 72 74 73 this->model_->setSyncMode(0); 75 //this->explosionEntity_->setSyncMode(0); 76 77 //this->model_->setSyncMode(0); 74 78 75 79 this->particleInterface_ = new ParticleInterface(this->getScene()->getSceneManager(), effect_, this->LOD_); … … 77 81 this->model_->attachOgreObject(this->particleInterface_->getParticleSystem()); 78 82 79 this->model_->setMeshSource(mesh_);83 80 84 81 85 this->explosionEntity_->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(50,100)); … … 95 99 { 96 100 this->mesh_ = newString; 101 this->model_->setMeshSource(mesh_); 102 this->model_->setVisible(false); 97 103 orxout() << newString << endl; 98 104 } -
code/branches/explosionChunksHS15/src/orxonox/worldentities/pawns/Pawn.cc
r10752 r10755 387 387 this->setDestroyWhenPlayerLeft(false); 388 388 389 /*ExplosionPart* chunk = new ExplosionPart(this->getContext());390 chunk->setPosition(this->getPosition());391 chunk->setVelocity(this->getVelocity());392 chunk->Explode();*/393 394 389 while(!explosionPartList_.empty()) 395 390 {
Note: See TracChangeset
for help on using the changeset viewer.