Changeset 6810 for code/branches/rocket/src/modules/weapons/projectiles
- Timestamp:
- Apr 30, 2010, 2:34:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc
r6803 r6810 61 61 RocketController* myRController = new RocketController(this); 62 62 this->setController(myRController); 63 myRController->setRocket(this, myRController);63 //myRController->setRocket(this, myRController); 64 64 65 65 //this->getController()->setControllableEntity(this); … … 70 70 if (GameMode::isMaster()) 71 71 { 72 this->setCollisionType(WorldEntity::Kinematic);73 this->setVelocity(0,0,-100); 72 /* this->setCollisionType(WorldEntity::Kinematic); 73 this->setVelocity(0,0,-100);*/ 74 74 75 75 Model* model = new Model(this); 76 76 model->setMeshSource("Rocket.mesh"); 77 model->scale(0.7f);77 //model->scale(0.7f); 78 78 this->attach(model); 79 ParticleEmitter* fire = new ParticleEmitter(this);79 /* ParticleEmitter* fire = new ParticleEmitter(this); 80 80 this->attach(fire); 81 81 fire->setOrientation(this->getOrientation()); … … 89 89 collisionShape->setRadius(3); 90 90 collisionShape->setHeight(500); 91 this->attachCollisionShape(collisionShape); 91 this->attachCollisionShape(collisionShape);*/ 92 92 93 93 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&SimpleRocket::destroyObject, this))); … … 96 96 } 97 97 98 /** 98 /**s 99 99 @brief 100 100 Destructor. Destroys controller, if present and kills sounds, if playing.
Note: See TracChangeset
for help on using the changeset viewer.