Changeset 3334 in orxonox.OLD for orxonox/branches/parenting
- Timestamp:
- Jan 5, 2005, 1:10:50 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/world.cc
r3328 r3334 153 153 case DEBUG_WORLD_0: 154 154 { 155 testCurve = new UPointCurve();156 testCurve->addNode(Vector( 0, 0, 0));157 testCurve->addNode(Vector(10, 0, 5));158 testCurve->addNode(Vector(20, -5,-5));159 testCurve->addNode(Vector(30, 5, 10));160 testCurve->addNode(Vector(40, 0,-10));161 testCurve->addNode(Vector(50, 0,-10));162 163 164 155 this->nullParent = NullParent::getInstance (); 165 156 this->nullParent->setName ("NullParent"); … … 443 434 { 444 435 glEvalCoord1f ((GLfloat) i/30.0); 445 }446 glEnd();447 448 glBegin(GL_LINES);449 for(float i=0.0; i<1; i+=.001)450 {451 printf("%f %f %f\n",testCurve->calcPos(i).x,testCurve->calcPos(i).y,testCurve->calcPos(i).z);452 glVertex3f(testCurve->calcPos(i).x, testCurve->calcPos(i).y, testCurve->calcPos(i).z);453 glVertex3f(testCurve->calcPos(i).x+testCurve->calcDir(i).x, testCurve->calcPos(i).y+testCurve->calcDir(i).y, testCurve->calcPos(i).z+testCurve->calcDir(i).z);454 436 } 455 437 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.