Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2013, 9:02:04 PM (11 years ago)
Author:
zifloria
Message:

tried to make particle effects dynamic. Didn't work….

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/orxonox/worldentities/BigExplosion.cc

    r9868 r9869  
    148148        this->debrisEntity4_->attach(debris4_);
    149149
    150         // particleSpawner is a static entity. It should probably be dynamic, for better explosions.
    151         // effect->SetVelocity(this->getVelocity() + Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10,100))
     150        // ///////////////////////
     151        // TODO: particleSpawner is a static entity. It should probably be dynamic, for better explosions.
     152        //
    152153        ParticleSpawner* effect = new ParticleSpawner(this->getContext());
     154        // orxout() << "vel " << getVelocity() << endl;
     155        // effect->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10, 200));
    153156        effect->setDestroyAfterLife(true);
    154157        effect->setSource("Orxonox/explosion2b");
     
    157160
    158161        ParticleSpawner* effect2 = new ParticleSpawner(this->getContext());
     162        // effect2->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10, 200));
    159163        effect2->setDestroyAfterLife(true);
    160164        effect2->setSource("Orxonox/smoke6");
Note: See TracChangeset for help on using the changeset viewer.