Changeset 4153 in orxonox.OLD for orxonox/branches/md2_loader
- Timestamp:
- May 10, 2005, 6:48:58 PM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/story_entities/world.cc
r4152 r4153 33 33 #include "skybox.h" 34 34 #include "satellite.h" 35 #include "test_entity.h" 35 36 #include "terrain.h" 36 37 #include "light.h" … … 51 52 #include "substring.h" 52 53 53 #include "md2Model.h" 54 54 55 55 56 using namespace std; … … 484 485 terrain->setRelCoor(Vector(0,-10,0)); 485 486 this->spawn(terrain); 487 488 WorldEntity* testEntity = new TestEntity(); 489 testEntity->setRelCoor(Vector(570, 10, -15)); 490 testEntity->setRelDir(Quaternion(M_PI, Vector(0, 1, 0))); 491 this->spawn(testEntity); 492 //this->localPlayer->addChild(testEntity); 493 486 494 } 487 495 -
orxonox/branches/md2_loader/src/world_entities/test_entity.cc
r4152 r4153 34 34 35 35 md2loader->importMD2(model, "../data/models/jack/tris.md2", "test.bmp"); 36 37 //this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);38 36 } 39 37 40 38 39 TestEntity::~TestEntity () 40 {} 41 41 42 TestEntity::~TestEntity ()43 {44 45 }46 42 47 43 void TestEntity::tick (float time) {} 48 44 45 49 46 void TestEntity::hit (WorldEntity* weapon, Vector* loc) {} 47 50 48 51 49 void TestEntity::destroy () {} 52 50 51 53 52 void TestEntity::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) {} 53 54 54 55 55 void TestEntity::draw ()
Note: See TracChangeset
for help on using the changeset viewer.