Changeset 1783 for code/trunk/src/orxonox
- Timestamp:
- Sep 15, 2008, 9:54:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1781 r1783 342 342 343 343 void SpaceShip::getFocus(){ 344 COUT( 3) << "requesting focus" << std::endl;344 COUT(4) << "requesting focus" << std::endl; 345 345 //if(!network::Host::running() || network::Host::getShipID()==objectID) 346 346 if(myShip_) … … 356 356 // COUT(4) << "begin camera creation" << std::endl; 357 357 this->camNode_ = this->getNode()->createChildSceneNode(camName_); 358 COUT( 3) << "position: (this)" << this->getNode()->getPosition() << std::endl;358 COUT(4) << "position: (this)" << this->getNode()->getPosition() << std::endl; 359 359 this->camNode_->setPosition(Vector3(-25,0,5)); 360 360 // Quaternion q1 = Quaternion(Radian(Degree(90)),Vector3(0,-1,0)); … … 374 374 //if(!network::Host::running() || network::Host::getShipID()==objectID){ //TODO: check this 375 375 if(myShip_){ 376 COUT( 3) << "requesting focus for camera" << std::endl;376 COUT(4) << "requesting focus for camera" << std::endl; 377 377 //CameraHandler::getInstance()->requestFocus(cam_); 378 378 if(this->isExactlyA(Class(SpaceShip))){ 379 379 getFocus(); 380 COUT( 3) << "getting focus for obj id: " << objectID << std::endl;380 COUT(4) << "getting focus for obj id: " << objectID << std::endl; 381 381 }else 382 COUT( 3) << "not getting focus (not exactly spaceship) for obj id: " << objectID << std::endl;382 COUT(4) << "not getting focus (not exactly spaceship) for obj id: " << objectID << std::endl; 383 383 }else 384 COUT( 3) << "not getting focus (not my ship) for obj id: " << objectID << std::endl;384 COUT(4) << "not getting focus (not my ship) for obj id: " << objectID << std::endl; 385 385 } 386 386
Note: See TracChangeset
for help on using the changeset viewer.