Changeset 4397 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 30, 2005, 4:57:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4396 r4397 477 477 478 478 Field* gravity = new Gravity(); 479 gravity->setMagnitude(10 00);479 gravity->setMagnitude(10.0); 480 480 // gravity->setParent(this->localCamera->getTarget()); 481 481 … … 484 484 485 485 new PhysicsConnection(system, gravity); 486 new PhysicsConnection(this->localPlayer, gravity);487 488 489 WorldEntity* testEntity = new TestEntity();490 //testEntity->setRelCoor(Vector(570, 10, -15));491 testEntity->setRelCoor(Vector(25, -10, -20));486 // new PhysicsConnection(this->localPlayer, gravity); 487 488 489 TestEntity* testEntity = new TestEntity(); 490 testEntity->setRelCoor(Vector(570, 10, -15)); 491 //testEntity->setRelCoor(Vector(25, -10, -20)); 492 492 testEntity->setRelDir(Quaternion(M_PI, Vector(0, 1, 0))); 493 493 this->spawn(testEntity); 494 this->localPlayer->addChild(testEntity); 494 // this->localPlayer->addChild(testEntity); 495 496 new PhysicsConnection(testEntity, gravity); 495 497 } 496 498 … … 585 587 this->localPlayer->setName ("player"); 586 588 this->spawn (this->localPlayer); 589 this->localPlayer->setRelCoor(Vector(5,0,0)); 587 590 /*monitor progress*/ 588 591 this->glmis->step(); 592 593 Field* testField = new Gravity(); 594 testField->setMagnitude(10); 595 new PhysicsConnection(this->localPlayer, testField); 589 596 590 597 // bind camera … … 1010 1017 this->localCamera->tick(this->dt); 1011 1018 AnimationPlayer::getInstance()->tick(this->dtS); 1012 1013 1019 PhysicsEngine::getInstance()->tick(this->dtS); 1014 1020
Note: See TracChangeset
for help on using the changeset viewer.