Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3014 in orxonox.OLD for orxonox/branches/bezierTrack/src/world.cc


Ignore:
Timestamp:
Nov 27, 2004, 4:12:26 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bezierTrack: Track visible. It worked :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bezierTrack/src/world.cc

    r3013 r3014  
    9999          {
    100100            // create some path nodes
    101             this->pathnodes = new Vector[6];
    102101           
    103102            this->tracklen = 6;
     
    264263  */ 
    265264  //draw track
    266   glBegin(GL_LINES);
     265  glBegin(GL_LINE_STRIP);
    267266  glColor3f(0,1,1);
    268   for( int i = 0; i < tracklen; i++)
    269     {
    270       glVertex3f(pathnodes[i].x,pathnodes[i].y,pathnodes[i].z);
    271       glVertex3f(pathnodes[(i+1)%tracklen].x,pathnodes[(i+1)%tracklen].y,pathnodes[(i+1)%tracklen].z);
     267  for( float i = 0; i <= 1; i+=.01)
     268    {
     269      glVertex3f(track->getPos(i).x, track->getPos(i).y, track->getPos(i).z);
    272270    }
    273271  glEnd();
Note: See TracChangeset for help on using the changeset viewer.