Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2013, 2:08:26 PM (11 years ago)
Author:
zifloria
Message:

tweaking + still trying to figure out explosions

File:
1 edited

Legend:

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

    r9837 r9879  
    365365        this->setDestroyWhenPlayerLeft(false);
    366366
    367         BigExplosion* chunk = new BigExplosion(this->getContext());
     367        orxout() << "big explosion: " << this->getVelocity() << endl;
     368        BigExplosion* chunk = new BigExplosion(this->getContext(), this->getVelocity());
    368369        chunk->setPosition(this->getPosition());
    369         chunk->setVelocity(this->getVelocity());
     370        // chunk->setVelocity(this->getVelocity());
    370371
    371372    }
     
    377378            effect->setPosition(this->getPosition());
    378379            effect->setOrientation(this->getOrientation());
     380            effect->setVelocity(this->getVelocity());
    379381            effect->setDestroyAfterLife(true);
    380382            effect->setSource("Orxonox/explosion2b");
     
    385387            effect->setPosition(this->getPosition());
    386388            effect->setOrientation(this->getOrientation());
     389            effect->setVelocity(this->getVelocity());
    387390            effect->setDestroyAfterLife(true);
    388391            effect->setSource("Orxonox/smoke6");
     
    393396            effect->setPosition(this->getPosition());
    394397            effect->setOrientation(this->getOrientation());
     398            effect->setVelocity(this->getVelocity());
    395399            effect->setDestroyAfterLife(true);
    396400            effect->setSource("Orxonox/sparks");
Note: See TracChangeset for help on using the changeset viewer.