Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

removed lag at first explosion

File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.