Changeset 5851 in orxonox.OLD for branches/spaceshipcontrol
- Timestamp:
- Dec 1, 2005, 5:09:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/story_entities/world.cc
r5819 r5851 320 320 { 321 321 localPlayer = (Player*) created; 322 CDEngine::getInstance()->setPlayer(localPlayer);323 322 } 324 323 if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created; … … 380 379 381 380 // TrackManager::getInstance()->setBindSlave(env); 382 PNode* tn = TrackManager::getInstance()->getTrackNode();383 tn->addChild(this->localPlayer);381 // PNode* tn = TrackManager::getInstance()->getTrackNode(); 382 // tn->addChild(this->localPlayer); 384 383 385 384 //localCamera->setParent(TrackNode::getInstance()); 386 tn->addChild(this->localCamera);387 localCamera->lookAt(tn);385 // tn->addChild(this->localCamera); 386 // localCamera->lookAt(tn); 388 387 localCamera->setClipRegion(1, 10000.0); 389 this->localPlayer->setParentMode(PNODE_ALL);388 // this->localPlayer->setParentMode(PNODE_ALL); 390 389 TrackManager::getInstance()->condition(1, LEFTRIGHT, this->localPlayer); 391 390 … … 573 572 574 573 575 this->localPlayer = new Player ();576 this->localPlayer->setName ("player");577 this->spawn (this->localPlayer);578 this->localPlayer->setRelCoor(Vector(5,0,0));574 // this->localPlayer = new Player (); 575 // this->localPlayer->setName ("player"); 576 // this->spawn (this->localPlayer); 577 // this->localPlayer->setRelCoor(Vector(5,0,0)); 579 578 /*monitor progress*/ 580 579 this->glmis->step(); … … 614 613 this->glmis->step(); 615 614 616 this->pilotNode = new PilotNode();617 this->spawn(this->pilotNode);618 this->pilotNode->setAbsCoor(Vector(150, -35, 5));619 this->pilotNode->addChild(this->localPlayer);620 this->pilotNode->addChild(this->localCamera);621 this->localCamera->lookAt(this->localPlayer);615 // this->pilotNode = new PilotNode(); 616 // this->spawn(this->pilotNode); 617 // this->pilotNode->setAbsCoor(Vector(150, -35, 5)); 618 // this->pilotNode->addChild(this->localPlayer); 619 // this->pilotNode->addChild(this->localCamera); 620 // this->localCamera->lookAt(this->localPlayer); 622 621 623 622 EventHandler::getInstance()->subscribe(this->pilotNode, ES_GAME, KeyMapper::PEV_UP);
Note: See TracChangeset
for help on using the changeset viewer.