Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4679 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Jun 24, 2005, 12:10:46 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: put together a little scene in the collision detection subproject. obbs not yet calculated

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/environment.cc

    r4597 r4679  
    3232{
    3333  this->setClassID(CL_ENVIRONMENT, "Environment");
     34  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
    3435}
    3536
  • orxonox/trunk/src/world_entities/test_entity.cc

    r4488 r4679  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    1313   ### File Specific
    1414   main-programmer: Patrick Boenzli
    15    co-programmer: 
     15   co-programmer:
    1616*/
    1717
     
    2727
    2828TestEntity::TestEntity () : WorldEntity(), PhysicsInterface(this)
    29 { 
     29{
    3030  this->setClassID(CL_TEST_ENTITY, "TestEntity");
    3131
     
    3535
    3636
    37 TestEntity::~TestEntity () 
     37TestEntity::~TestEntity ()
    3838{
    3939  delete this->md2Model;
     
    4747
    4848
    49 void TestEntity::tick (float time) 
     49void TestEntity::tick (float time)
    5050{
    5151  this->md2Model->tick(time);
     
    6262
    6363
    64 void TestEntity::draw () 
     64void TestEntity::draw ()
    6565{
    6666  glMatrixMode(GL_MODELVIEW);
    6767  glPushMatrix();
    6868  float matrix[4][4];
    69  
     69
     70
    7071  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    7172  this->getAbsDir().matrix (matrix);
    7273  glMultMatrixf((float*)matrix);
    73  
     74  glScalef(0.2, 0.2, 0.2);
    7475  this->md2Model->draw();
    75  
     76
    7677
    7778  glPopMatrix();
Note: See TracChangeset for help on using the changeset viewer.