- Timestamp:
- Dec 10, 2008, 5:30:39 PM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.cc
r2367 r2391 45 45 assert(this->getScene()->getSceneManager()); // getScene() was already checked by WorldEntity 46 46 47 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue( 1.0, 1.0, 0.5), 1);48 //this->attachObject(this->billboard_.getBillboardSet());49 this->scale(0. 5);47 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(0.5, 0.5, 0.7, 0.8), 1); 48 this->getNode()->attachObject(this->billboard_.getBillboardSet()); 49 this->scale(0.2); 50 50 } 51 51 -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/ParticleProjectile.cc
r2368 r2391 43 43 RegisterObject(ParticleProjectile); 44 44 45 this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/shot2 ", LODParticle::normal);45 this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/shot2_small", LODParticle::normal); 46 46 this->particles_->addToSceneNode(this->getNode()); 47 this->particles_->setKeepParticlesInLocalSpace(true);47 //this->particles_->setKeepParticlesInLocalSpace(true); 48 48 49 this->particles_->getAllEmitters()->setDirection(-WorldEntity::FRONT); 49 50 /* 50 51 if (this->owner_) … … 76 77 this->particles_->setEnabled(this->isVisible()); 77 78 } 78 79 bool ParticleProjectile::create(){80 if(!Projectile::create())81 return false;82 this->particles_->getAllEmitters()->setDirection(-this->getOrientation()*Vector3(1,0,0));83 return true;84 }85 79 } -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/ParticleProjectile.h
r2272 r2391 46 46 void setConfigValues(); 47 47 48 virtual bool create();49 50 48 private: 51 49 ParticleInterface* particles_; -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
r2379 r2391 48 48 RegisterObject(Projectile); 49 49 50 COUT(0) << "Projectile::Projectile" << std::endl; 51 50 52 this->setConfigValues(); 51 53 this->explosionTemplateName_ = "Orxonox/explosion3"; … … 53 55 54 56 //this->setStatic(false); 55 this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL);57 // this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL); 56 58 57 59 /* … … 121 123 delete this; 122 124 } 123 124 bool Projectile::create(){125 return WorldEntity::create();126 }127 125 } -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/Projectile.h
r2272 r2391 45 45 virtual void tick(float dt); 46 46 47 virtual bool create();48 49 47 protected: 50 48 Projectile(BaseObject* creator);
Note: See TracChangeset
for help on using the changeset viewer.