Changeset 6115 for code/branches/presentation2/src/modules
- Timestamp:
- Nov 21, 2009, 12:11:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/projectiles/Rocket.cc
r6107 r6115 63 63 this->model_ = new Model(this); 64 64 this->model_->setMeshSource("rocket.mesh"); 65 66 67 68 65 this->attach(this->model_); 66 ParticleSpawner* fire = new ParticleSpawner(this); 67 this->attach(fire); 68 fire->setOrientation(this->getOrientation()); 69 69 fire->setSource("Orxonox/rocketfire"); 70 70 … … 79 79 80 80 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&Rocket::destroyObject, this))); 81 82 83 81 } 84 82 … … 86 84 this->camPosition_->setPosition(0,10,40); 87 85 this->camPosition_->setSyncMode(0x0); 86 this->camPosition_->setAllowMouseLook(true); 88 87 this->attach( this->camPosition_ ); 89 88 this->addCameraPosition( this->camPosition_ ); … … 98 97 if(this->isInitialized()) 99 98 { 100 101 99 if (GameMode::isMaster() && this->player_.get()) 102 100 { … … 229 227 void Rocket::rotateYaw(const Vector2& value) 230 228 { 231 this->localAngularVelocity_.y += value.x; 229 ControllableEntity::rotateYaw(value); 230 231 if( !this->isInMouseLook() ) 232 this->localAngularVelocity_.y += value.x; 232 233 } 233 234 … … 240 241 void Rocket::rotatePitch(const Vector2& value) 241 242 { 242 this->localAngularVelocity_.x += value.x; 243 ControllableEntity::rotatePitch(value); 244 245 if( !this->isInMouseLook() ) 246 this->localAngularVelocity_.x += value.x; 243 247 } 244 248 … … 251 255 void Rocket::rotateRoll(const Vector2& value) 252 256 { 253 this->localAngularVelocity_.z += value.x; 257 ControllableEntity::rotateRoll(value); 258 259 if( !this->isInMouseLook() ) 260 this->localAngularVelocity_.z += value.x; 254 261 } 255 262
Note: See TracChangeset
for help on using the changeset viewer.