Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10755


Ignore:
Timestamp:
Nov 2, 2015, 3:56:46 PM (8 years ago)
Author:
vaydin
Message:

removed lag at first explosion

Location:
code/branches/explosionChunksHS15/src/orxonox/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/ExplosionPart.cc

    r10752 r10755  
    4848                this->explosionEntity_ = new MovableEntity(this->getContext());
    4949
     50
     51
    5052        }
    5153
     
    6971                orxout() << getEffect() << endl;
    7072
    71                 this->explosionEntity_->setSyncMode(0);
     73                this->model_->setVisible(true);
    7274
    73                 this->model_->setSyncMode(0);
     75                //this->explosionEntity_->setSyncMode(0);
     76
     77                //this->model_->setSyncMode(0);
    7478
    7579                this->particleInterface_ = new ParticleInterface(this->getScene()->getSceneManager(), effect_, this->LOD_);
     
    7781                this->model_->attachOgreObject(this->particleInterface_->getParticleSystem());
    7882
    79                 this->model_->setMeshSource(mesh_);
     83               
    8084
    8185                this->explosionEntity_->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(50,100));
     
    9599        {
    96100                this->mesh_ = newString;
     101                this->model_->setMeshSource(mesh_);
     102                this->model_->setVisible(false);
    97103                orxout() << newString << endl;
    98104        }
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/pawns/Pawn.cc

    r10752 r10755  
    387387        this->setDestroyWhenPlayerLeft(false);
    388388
    389         /*ExplosionPart* chunk = new ExplosionPart(this->getContext());
    390         chunk->setPosition(this->getPosition());
    391         chunk->setVelocity(this->getVelocity());
    392         chunk->Explode();*/
    393 
    394389        while(!explosionPartList_.empty())
    395390        {
Note: See TracChangeset for help on using the changeset viewer.