Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4153 in orxonox.OLD for orxonox/branches/md2_loader/src


Ignore:
Timestamp:
May 10, 2005, 6:48:58 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: now the model gets displayed at the first track fork location - no texture until now. doesn't look that bad… actualy looks quite good :))

Location:
orxonox/branches/md2_loader/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/story_entities/world.cc

    r4152 r4153  
    3333#include "skybox.h"
    3434#include "satellite.h"
     35#include "test_entity.h"
    3536#include "terrain.h"
    3637#include "light.h"
     
    5152#include "substring.h"
    5253
    53 #include "md2Model.h"
     54
    5455
    5556using namespace std;
     
    484485  terrain->setRelCoor(Vector(0,-10,0));
    485486  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
    486494}
    487495
  • orxonox/branches/md2_loader/src/world_entities/test_entity.cc

    r4152 r4153  
    3434
    3535  md2loader->importMD2(model, "../data/models/jack/tris.md2", "test.bmp");
    36 
    37   //this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
    3836}
    3937
    4038
     39TestEntity::~TestEntity ()
     40{}
    4141
    42 TestEntity::~TestEntity ()
    43 {
    44 
    45 }
    4642
    4743void TestEntity::tick (float time) {}
    4844
     45
    4946void TestEntity::hit (WorldEntity* weapon, Vector* loc) {}
     47
    5048
    5149void TestEntity::destroy () {}
    5250
     51
    5352void TestEntity::collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags) {}
     53
    5454
    5555void TestEntity::draw ()
Note: See TracChangeset for help on using the changeset viewer.