Changeset 3848 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Apr 17, 2005, 2:16:45 AM (21 years ago)
- File:
-
- 1 edited
-
orxonox/trunk/src/story_entities/world.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3846 r3848 484 484 this->spawn(c); 485 485 486 487 KeyFrame* f1 = new KeyFrame;488 f1->position = new Vector(-1.1, 0.0, 2.6);489 f1->direction = new Quaternion();490 f1->time = 1.0;491 f1->mode = NEG_EXP;492 493 494 KeyFrame* f2 = new KeyFrame;495 f2->position = new Vector(-2.1, 0.0, 2.6);496 f2->direction = new Quaternion();497 f2->time = 0.1;498 f2->mode = NEG_EXP;499 500 KeyFrame* f3 = new KeyFrame;501 f3->position = new Vector(10.0, 2.0, -1.0);502 f3->direction = new Quaternion();503 f3->time = 0.2;504 f3->mode = NEG_EXP;505 506 KeyFrame* f4 = new KeyFrame;507 f4->position = new Vector(10.0, 5.0, -1.0);508 f4->direction = new Quaternion();509 f4->time = 1.0;510 f4->mode = NEG_EXP;511 512 513 514 this->simpleAnimation->animatorBegin();515 this->simpleAnimation->selectObject(b);516 this->simpleAnimation->setAnimationMode(SINGLE);517 this->simpleAnimation->addKeyFrame(f1);518 this->simpleAnimation->addKeyFrame(f2);519 this->simpleAnimation->start();520 this->simpleAnimation->selectObject(c);521 this->simpleAnimation->addKeyFrame(f3);522 this->simpleAnimation->addKeyFrame(f4);523 this->simpleAnimation->start();524 this->simpleAnimation->animatorEnd();525 486 /* 487 KeyFrame* f1 = new KeyFrame; 488 f1->position = new Vector(-1.1, 0.0, 2.6); 489 f1->direction = new Quaternion(); 490 f1->time = 1.0; 491 f1->mode = NEG_EXP; 492 493 494 KeyFrame* f2 = new KeyFrame; 495 f2->position = new Vector(-2.1, 0.0, 2.6); 496 f2->direction = new Quaternion(); 497 f2->time = 0.1; 498 f2->mode = NEG_EXP; 499 500 KeyFrame* f3 = new KeyFrame; 501 f3->position = new Vector(10.0, 2.0, -1.0); 502 f3->direction = new Quaternion(); 503 f3->time = 0.2; 504 f3->mode = NEG_EXP; 505 506 KeyFrame* f4 = new KeyFrame; 507 f4->position = new Vector(10.0, 5.0, -1.0); 508 f4->direction = new Quaternion(); 509 f4->time = 1.0; 510 f4->mode = NEG_EXP; 511 512 513 514 this->simpleAnimation->animatorBegin(); 515 this->simpleAnimation->selectObject(b); 516 this->simpleAnimation->setAnimationMode(SINGLE); 517 this->simpleAnimation->addKeyFrame(f1); 518 this->simpleAnimation->addKeyFrame(f2); 519 this->simpleAnimation->start(); 520 this->simpleAnimation->selectObject(c); 521 this->simpleAnimation->addKeyFrame(f3); 522 this->simpleAnimation->addKeyFrame(f4); 523 this->simpleAnimation->start(); 524 this->simpleAnimation->animatorEnd(); 525 */ 526 526 527 527 /*
Note: See TracChangeset
for help on using the changeset viewer.










