Changeset 1834 for code/branches/network/src/orxonox/objects/Projectile.cc
- Timestamp:
- Sep 26, 2008, 12:59:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Projectile.cc
r1747 r1834 54 54 this->smokeTemplateName_ = "Orxonox/smoke4"; 55 55 56 this->setStatic(false); 57 this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL); 58 56 59 if (this->owner_) 57 60 { 58 this->setStatic(false);59 61 this->setOrientation(this->owner_->getOrientation()); 60 62 this->setPosition(this->owner_->getPosition()); 61 this->translate(Vector3(55, 0, 0), Ogre::Node::TS_LOCAL);62 63 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 63 64 } … … 121 122 delete this; 122 123 } 124 125 bool Projectile::create(){ 126 return WorldEntity::create(); 127 } 123 128 }
Note: See TracChangeset
for help on using the changeset viewer.