Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 27, 2004, 1:05:47 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/bezierTrack: moveing possible (strange Camera-behaviour)

File:
1 edited

Legend:

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

    r3005 r3010  
    101101            this->pathnodes = new Vector[6];
    102102            this->pathnodes[0] = Vector(0, 0, 0);
    103             this->pathnodes[1] = Vector(1000, 0, 0);
    104             //      this->pathnodes[2] = Vector(-100, 140, 0);
    105             //      this->pathnodes[3] = Vector(0, 180, 0);
    106             //      this->pathnodes[4] = Vector(100, 140, 0);
    107             //      this->pathnodes[5] = Vector(100, 40, 0);
     103            this->pathnodes[1] = Vector(10, 5, 0);
     104            this->pathnodes[2] = Vector(20, 0, 0);
     105            this->pathnodes[3] = Vector(10, 3, 0);
     106            this->pathnodes[4] = Vector(50, 0, 0);
     107            this->pathnodes[5] = Vector(100, 0, 0);
    108108           
    109109            // create the tracks
    110             this->tracklen = 2;
    111             this->track = new Track[2];
     110            this->tracklen = 5;
     111            this->track = new Track();
    112112            for( int i = 0; i < this->tracklen; i++)
    113113              {
    114                 this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]);
     114                //              this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]);
     115                track->addPoint(this->pathnodes[i]);
    115116              }
    116117           
     
    152153            for( int i = 0; i < this->tracklen; i++)
    153154              {
    154                 this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]);
     155                //              this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]);
    155156              }
    156157           
     
    428429    }
    429430
    430   for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
     431  //  for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
    431432}
    432433
Note: See TracChangeset for help on using the changeset viewer.