Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9950 for code/trunk


Ignore:
Timestamp:
Jan 3, 2014, 3:25:44 PM (11 years ago)
Author:
landauf
Message:

ParticleEmitter should be a StaticEntity just like every other graphics class. If it needs to move, attach it to a movable entity.

Location:
code/trunk/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/graphics/ParticleEmitter.cc

    r9939 r9950  
    4545    RegisterClass(ParticleEmitter);
    4646
    47     ParticleEmitter::ParticleEmitter(Context* context) : MovableEntity(context)
     47    ParticleEmitter::ParticleEmitter(Context* context) : StaticEntity(context)
    4848    {
    4949        RegisterObject(ParticleEmitter);
  • code/trunk/src/orxonox/graphics/ParticleEmitter.h

    r9939 r9950  
    3333
    3434#include <string>
    35 #include "worldentities/MovableEntity.h"
     35#include "worldentities/StaticEntity.h"
    3636
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport ParticleEmitter : public MovableEntity
     39    class _OrxonoxExport ParticleEmitter : public StaticEntity
    4040    {
    4141        public:
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r9949 r9950  
    392392            effect->setPosition(this->getPosition());
    393393            effect->setOrientation(this->getOrientation());
    394             effect->setVelocity(this->getVelocity());
    395394            effect->setDestroyAfterLife(true);
    396395            effect->setSource("Orxonox/explosion2b");
     
    401400            effect->setPosition(this->getPosition());
    402401            effect->setOrientation(this->getOrientation());
    403             effect->setVelocity(this->getVelocity());
    404402            effect->setDestroyAfterLife(true);
    405403            effect->setSource("Orxonox/smoke6");
     
    410408            effect->setPosition(this->getPosition());
    411409            effect->setOrientation(this->getOrientation());
    412             effect->setVelocity(this->getVelocity());
    413410            effect->setDestroyAfterLife(true);
    414411            effect->setSource("Orxonox/sparks");
Note: See TracChangeset for help on using the changeset viewer.