Changeset 4223 in orxonox.OLD for orxonox/branches/physics/src/story_entities
- Timestamp:
- May 19, 2005, 7:45:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/story_entities/world.cc
r4193 r4223 365 365 366 366 // find Track 367 /*element = root->FirstChildElement( "Track");367 element = root->FirstChildElement( "Track"); 368 368 if( element == NULL) 369 369 { … … 375 375 PRINTF0("============>>>>>>>>>>>>>>>>Loading Track\n"); 376 376 377 trackManager->load Track( element);377 trackManager->load( element); 378 378 trackManager->finalize(); 379 379 PRINTF0("============>>>>>>>>>>>>>>>>Done loading Track\n"); 380 } */380 } 381 381 382 382 // free the XML data … … 395 395 396 396 // stuff beyond this point remains to be loaded properly 397 397 /* 398 398 // initializing the TrackManager 399 399 this->trackManager = TrackManager::getInstance(); … … 403 403 trackManager->addPoint(Vector(250, -35, 5)); 404 404 trackManager->addPoint(Vector(320,-33,-.55)); 405 trackManager->setDuration( 2);405 trackManager->setDuration(1); 406 406 trackManager->setSavePoint(); 407 407 … … 410 410 trackManager->addPoint(Vector(550, 20, -10)); 411 411 trackManager->addPoint(Vector(570, 20, -10)); 412 trackManager->setDuration( 5);412 trackManager->setDuration(2); 413 413 414 int fork11, fork12; 415 trackManager->fork(2, &fork11, &fork12); 416 trackManager->workOn(fork11); 414 trackManager->forkS("testFork1,testFork2"); 415 trackManager->workOn("testFork1"); 417 416 trackManager->addPoint(Vector(640, 25, -30)); 418 417 trackManager->addPoint(Vector(700, 40, -120)); … … 423 422 trackManager->addPoint(Vector(1050, 65, -10)); 424 423 trackManager->addPoint(Vector(1100, 65, -20)); 425 trackManager->setDuration( 10);426 427 trackManager->workOn( fork12);424 trackManager->setDuration(4); 425 426 trackManager->workOn("testFork2"); 428 427 trackManager->addPoint(Vector(640, 25, 20)); 429 428 trackManager->addPoint(Vector(670, 50, 120)); … … 435 434 trackManager->addPoint(Vector(970, 24, 40)); 436 435 trackManager->addPoint(Vector(1000, 40, -7)); 437 trackManager->setDuration( 10);436 trackManager->setDuration(4); 438 437 439 440 trackManager->join(2, fork11, fork12); 441 442 trackManager->workOn(5); 438 439 trackManager->joinS("testFork1,testFork2"); 440 443 441 trackManager->addPoint(Vector(1200, 60, -50)); 444 442 trackManager->addPoint(Vector(1300, 50, -50)); … … 451 449 trackManager->addPoint(Vector(1800, 100, -40)); 452 450 trackManager->setDuration(10); 453 451 */ 454 452 trackManager->finalize(); 455 453 … … 483 481 glNewList (objectList, GL_COMPILE); 484 482 485 //trackManager->drawGraph(.01);483 trackManager->drawGraph(.01); 486 484 trackManager->debug(2); 487 485 glEndList();
Note: See TracChangeset
for help on using the changeset viewer.