Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10412 in orxonox.OLD


Ignore:
Timestamp:
Jan 27, 2007, 7:48:48 PM (17 years ago)
Author:
patrick
Message:

fixed the translation bug and space ship drawing

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/track/track.cc

    r10410 r10412  
    288288    glRotatef (node->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    289289
     290
    290291      glBegin(GL_LINE_STRIP);
    291292        glColor3f(1.0, 1.0, 0.6);
    292293
     294        Vector tmpVector;
    293295        for(float f = 0.0; f < 1.0; f+=dt)
    294296          {
    295297            //PRINTF(0)("drawing",this->calcPos().x, this->calcPos().y, this->calcPos().z);
    296             Vector tmpVector = this->curve->calcPos(f);
     298            tmpVector = this->curve->calcPos(f);
    297299            glVertex3f(tmpVector.x, tmpVector.y, tmpVector.z);
    298300          }
     301          tmpVector.debug();
    299302      glEnd();
    300303
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10384 r10412  
    490490void SpaceShip::draw () const
    491491{
     492  if( this->entityTrack != NULL)
     493    this->entityTrack->drawGraph();
     494
    492495  WorldEntity::draw();
    493496
     
    501504  //glScalef(2.0, 2.0, 2.0);  // no double rescale
    502505        // FIXME
     506
     507
    503508  this->trail->draw();
    504509
Note: See TracChangeset for help on using the changeset viewer.