Changeset 1602 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Jun 14, 2008, 7:20:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1564 r1602 132 132 this->teamNr_ = 0; 133 133 this->health_ = 100; 134 135 COUT(3) << "Info: SpaceShip was loaded" << std::endl;136 134 } 137 135 … … 209 207 node2b->setScale(0.5, 0.5, 0.5); 210 208 tt2_->addToSceneNode(node2b); 209 210 this->leftThrusterFlare_.setBillboardSet("Flares/ThrusterFlare1", Vector3(-7.5, -10, -0.5)); 211 this->rightThrusterFlare_.setBillboardSet("Flares/ThrusterFlare1", Vector3(-7.5, 10, -0.5)); 212 213 Ogre::SceneNode* node2c = this->getNode()->createChildSceneNode(this->getName() + "particle2c"); 214 node2c->setInheritScale(false); 215 node2c->setScale(2, 2, 2); 216 node2c->attachObject(this->leftThrusterFlare_.getBillboardSet()); 217 node2c->attachObject(this->rightThrusterFlare_.getBillboardSet()); 211 218 // END CREATING THRUSTER 212 219 … … 226 233 this->greenNode_->setScale(0.3, 0.3, 0.3); 227 234 // END CREATING BLINKING LIGHTS 235 236 this->smoke_.setParticle("Orxonox/smoke5", LODParticle::normal); 237 this->fire_.setParticle("Orxonox/fire3", LODParticle::normal); 238 this->attachObject(this->smoke_); 239 this->attachObject(this->fire_); 228 240 229 241 if (this->isExactlyA(Class(SpaceShip))) … … 266 278 this->crosshairNear_.setVisible(this->isVisible()); 267 279 this->crosshairFar_.setVisible(this->isVisible()); 280 this->rightThrusterFlare_.setVisible(this->isVisible()); 281 this->leftThrusterFlare_.setVisible(this->isVisible()); 282 this->smoke_.setVisible(this->isVisible()); 283 this->fire_.setVisible(this->isVisible()); 268 284 } 269 285 … … 278 294 this->crosshairNear_.setVisible(this->isVisible()); 279 295 this->crosshairFar_.setVisible(this->isVisible()); 296 this->rightThrusterFlare_.setVisible(this->isVisible()); 297 this->leftThrusterFlare_.setVisible(this->isVisible()); 280 298 } 281 299 … … 385 403 this->cam_->tick(dt); 386 404 405 this->smoke_.setVisible(this->isVisible() && this->health_ < 40); 406 this->fire_.setVisible(this->isVisible() && this->health_ < 20); 407 387 408 if (this->redNode_ && this->greenNode_) 388 409 {
Note: See TracChangeset
for help on using the changeset viewer.