Changeset 3730 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Apr 6, 2005, 12:11:10 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/simple_animation.cc
r3729 r3730 263 263 this->localTime -= this->currentFrame->time; 264 264 265 this->lastPosition = this->currentFrame->position; 265 this->currentFrame->object->setRelCoor(this->currentFrame->position); 266 *this->lastPosition = *this->currentFrame->position; 267 266 268 this->lastFrame = this->currentFrame; 267 269 this->currentFrame = this->frames->nextElement(this->currentFrame); 268 270 } 269 270 271 271 272 /* now animate it */ 272 273 switch( this->mode) -
orxonox/trunk/src/story_entities/world.cc
r3729 r3730 442 442 443 443 444 444 445 WorldEntity* a = new Environment(); 445 this->spawn(a, new Vector(200.0, -35.0, 5.0), new Quaternion()); 446 this->localPlayer->addChild(a); 447 a->setRelCoor(new Vector(10.0, 2.0, 1.0)); 448 this->spawn(a); 449 446 450 447 451 WorldEntity* b = new Environment(); 448 452 this->localPlayer->addChild(b); 449 b->setRelCoor(new Vector(10.0, 0.0, 0.0));453 b->setRelCoor(new Vector(10.0, 1.0, 1.0)); 450 454 this->spawn(b); 455 456 WorldEntity* c = new Environment(); 457 this->localPlayer->addChild(c); 458 c->setRelCoor(new Vector(10.0, 2.0, -1.0)); 459 this->spawn(c); 460 451 461 452 462 this->simpleAnimation = SimpleAnimation::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.