Changeset 3010 in orxonox.OLD for orxonox/branches/bezierTrack/src/world.cc
- Timestamp:
- Nov 27, 2004, 1:05:47 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bezierTrack/src/world.cc
r3005 r3010 101 101 this->pathnodes = new Vector[6]; 102 102 this->pathnodes[0] = Vector(0, 0, 0); 103 this->pathnodes[1] = Vector(10 00, 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); 108 108 109 109 // create the tracks 110 this->tracklen = 2;111 this->track = new Track [2];110 this->tracklen = 5; 111 this->track = new Track(); 112 112 for( int i = 0; i < this->tracklen; i++) 113 113 { 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]); 115 116 } 116 117 … … 152 153 for( int i = 0; i < this->tracklen; i++) 153 154 { 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]); 155 156 } 156 157 … … 428 429 } 429 430 430 for( int i = 0; i < tracklen; i++) track[i].tick (seconds);431 // for( int i = 0; i < tracklen; i++) track[i].tick (seconds); 431 432 } 432 433
Note: See TracChangeset
for help on using the changeset viewer.