Changeset 1558 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Jun 7, 2008, 2:06:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1553 r1558 251 251 } 252 252 253 void SpaceShip::changedVisibility() 254 { 255 Model::changedVisibility(); 256 257 this->tt1_->setEnabled(this->isVisible()); 258 this->tt2_->setEnabled(this->isVisible()); 259 this->redBillboard_.setVisible(this->isVisible()); 260 this->greenBillboard_.setVisible(this->isVisible()); 261 this->crosshairNear_.setVisible(this->isVisible()); 262 this->crosshairFar_.setVisible(this->isVisible()); 263 } 264 265 void SpaceShip::changedActivity() 266 { 267 Model::changedActivity(); 268 269 this->tt1_->setEnabled(this->isVisible()); 270 this->tt2_->setEnabled(this->isVisible()); 271 this->redBillboard_.setVisible(this->isVisible()); 272 this->greenBillboard_.setVisible(this->isVisible()); 273 this->crosshairNear_.setVisible(this->isVisible()); 274 this->crosshairFar_.setVisible(this->isVisible()); 275 } 276 253 277 void SpaceShip::setCamera(const std::string& camera) 254 278 { … … 347 371 void SpaceShip::tick(float dt) 348 372 { 373 if (!this->isActive()) 374 return; 375 349 376 currentDir_ = getOrientation()*initialDir_; 350 377 currentOrth_ = getOrientation()*initialOrth_;
Note: See TracChangeset
for help on using the changeset viewer.