- Timestamp:
- Apr 6, 2005, 12:44:49 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r3678 r3731 723 723 printf(" Removing 1st reference from list:\t%11.2f\n", mi); 724 724 725 725 726 printf("\nList operations tests: \t\t\t\t\t%i\n", LIST_MAX); 727 list = new tList<char>(); 728 printf(" Adding[1..10] elements to list, found:\n"); 729 list->add("1"); 730 list->add("2"); 731 list->add("3"); 732 list->add("4"); 733 list->add("5"); 734 list->add("6"); 735 list->add("7"); 736 list->add("8"); 737 list->add("9"); 738 list->add("10"); 739 740 /*give list out */ 741 iterator = list->getIterator(); 742 name = iterator->nextElement(); 743 printf(" List Elements: \t\t"); 744 while( name != NULL) 745 { 746 printf("%s,", name); 747 name = iterator->nextElement(); 748 } 749 delete iterator; 750 printf("\n"); 751 752 753 int c = 0; 754 printf(" Going trough list with nextElement(el) func: "); 755 name = list->firstElement(); 756 while(c < 20) 757 { 758 printf("%s,", name); 759 name = list->nextElement(name); 760 c++; 761 } 762 printf("\n"); 763 764 726 765 727 766 } -
orxonox/trunk/src/simple_animation.cc
r3730 r3731 275 275 case LINEAR: 276 276 277 *this->tmpVect = *this-> currentFrame->position - *this->lastFrame->position;277 *this->tmpVect = *this->lastFrame->position - *this->currentFrame->position; 278 278 *this->tmpVect = *this->tmpVect * this->localTime / this->currentFrame->time; 279 this->currentFrame->object->shiftCoor(*this->tmpVect - *this->lastPosition); 279 //this->currentFrame->object->shiftCoor(*this->tmpVect - *this->lastPosition); 280 this->currentFrame->object->setRelCoor(*this->currentFrame->position + *this->tmpVect); 280 281 *this->lastPosition = *this->tmpVect; 282 //printf("shift vector: ");this->lastPosition->debug(); 281 283 break; 282 284 case EXP: -
orxonox/trunk/src/story_entities/world.cc
r3730 r3731 443 443 444 444 445 /* 445 446 WorldEntity* a = new Environment(); 446 447 this->localPlayer->addChild(a); 447 448 a->setRelCoor(new Vector(10.0, 2.0, 1.0)); 448 449 this->spawn(a); 449 450 */ 450 451 451 452 WorldEntity* b = new Environment(); … … 454 455 this->spawn(b); 455 456 457 /* 456 458 WorldEntity* c = new Environment(); 457 459 this->localPlayer->addChild(c); 458 460 c->setRelCoor(new Vector(10.0, 2.0, -1.0)); 459 461 this->spawn(c); 460 462 */ 461 463 462 464 this->simpleAnimation = SimpleAnimation::getInstance(); … … 482 484 f2->mode = LINEAR; 483 485 486 KeyFrame* f3 = new KeyFrame; 487 f3->position = new Vector(10.0, 0.0, -1.0); 488 f3->direction = new Quaternion(); 489 f3->time = 1.0; 490 f3->mode = LINEAR; 491 492 484 493 this->simpleAnimation->animatorBegin(); 485 494 this->simpleAnimation->selectObject(b); 486 495 this->simpleAnimation->addKeyFrame(f1); 487 496 this->simpleAnimation->addKeyFrame(f2); 497 //this->simpleAnimation->addKeyFrame(f3); 498 //this->simpleAnimation->addKeyFrame(f2); 488 499 this->simpleAnimation->animatorEnd(); 489 500
Note: See TracChangeset
for help on using the changeset viewer.