- Timestamp:
- Nov 19, 2008, 7:07:36 PM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.cc
r2099 r2232 42 42 RegisterObject(BillboardProjectile); 43 43 44 this->billboard_.setBillboardSet( "Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1);45 this->attachObject(this->billboard_.getBillboardSet());44 this->billboard_.setBillboardSet(this->scenemanager_, "Examples/Flare", ColourValue(1.0, 1.0, 0.5), 1); 45 //this->attachObject(this->billboard_.getBillboardSet()); 46 46 this->scale(0.5); 47 47 } … … 49 49 BillboardProjectile::~BillboardProjectile() 50 50 { 51 if (this->isInitialized() && this->owner_)52 this->detachObject(this->billboard_.getBillboardSet());51 //if (this->isInitialized() && this->owner_) 52 //this->detachObject(this->billboard_.getBillboardSet()); 53 53 } 54 54 -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/BillboardProjectile.h
r2099 r2232 47 47 virtual void changedVisibility(); 48 48 49 inline Ogre::SceneManager* getSceneManager() 50 { return this->scenemanager_; } 51 49 52 private: 50 53 BillboardSet billboard_; 54 Ogre::SceneManager* scenemanager_; 51 55 }; 52 56 } -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/ParticleProjectile.cc
r2099 r2232 30 30 #include "ParticleProjectile.h" 31 31 32 #include " SpaceShip.h"32 #include "../../worldentities/pawns/SpaceShip.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/ConfigValueIncludes.h" … … 42 42 RegisterObject(ParticleProjectile); 43 43 44 this->particles_ = new ParticleInterface( "Orxonox/shot2", LODParticle::normal);44 this->particles_ = new ParticleInterface(this->getSceneManager(), "Orxonox/shot2", LODParticle::normal); 45 45 this->particles_->addToSceneNode(this->getNode()); 46 46 this->particles_->setKeepParticlesInLocalSpace(true); -
code/branches/weapon2/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
r2100 r2232 54 54 this->smokeTemplateName_ = "Orxonox/smoke4"; 55 55 56 this->setStatic(false);56 //this->setStatic(false); 57 57 this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL); 58 58
Note: See TracChangeset
for help on using the changeset viewer.