Changeset 9869
- Timestamp:
 - Dec 3, 2013, 9:02:04 PM (12 years ago)
 - Location:
 - code/branches/invaders/src/orxonox
 - Files:
 - 
          
- 3 edited
 
- 
          graphics/ParticleEmitter.cc (modified) (1 diff)
 - 
          graphics/ParticleEmitter.h (modified) (1 diff)
 - 
          worldentities/BigExplosion.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/invaders/src/orxonox/graphics/ParticleEmitter.cc
r9667 r9869 45 45 RegisterClass(ParticleEmitter); 46 46 47 ParticleEmitter::ParticleEmitter(Context* context) : StaticEntity(context)47 ParticleEmitter::ParticleEmitter(Context* context) : MovableEntity(context) 48 48 { 49 49 RegisterObject(ParticleEmitter);  - 
        
code/branches/invaders/src/orxonox/graphics/ParticleEmitter.h
r9667 r9869 33 33 34 34 #include <string> 35 #include "worldentities/ StaticEntity.h"35 #include "worldentities/MovableEntity.h" 36 36 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport ParticleEmitter : public StaticEntity39 class _OrxonoxExport ParticleEmitter : public MovableEntity 40 40 { 41 41 public:  - 
        
code/branches/invaders/src/orxonox/worldentities/BigExplosion.cc
r9868 r9869 148 148 this->debrisEntity4_->attach(debris4_); 149 149 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 // 152 153 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)); 153 156 effect->setDestroyAfterLife(true); 154 157 effect->setSource("Orxonox/explosion2b"); … … 157 160 158 161 ParticleSpawner* effect2 = new ParticleSpawner(this->getContext()); 162 // effect2->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10, 200)); 159 163 effect2->setDestroyAfterLife(true); 160 164 effect2->setSource("Orxonox/smoke6");  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






