Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3319 in orxonox.OLD for orxonox/branches/parenting/src/world.cc


Ignore:
Timestamp:
Jan 3, 2005, 12:23:08 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: added a testCurve to world.cc, and removed curve from the vector-class.

File:
1 edited

Legend:

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

    r3311 r3319  
    153153        case DEBUG_WORLD_0:
    154154          {
     155            testCurve = new BezierCurve();
     156            testCurve->addNode(Vector(0,0,0));
     157            testCurve->addNode(Vector(5,7,0));
     158            testCurve->addNode(Vector(10,-5,0));
     159            testCurve->addNode(Vector(20, 0,10));
     160            testCurve->addNode(Vector(50, 7,-5));
     161           
    155162            this->nullParent = NullParent::getInstance ();
    156163            this->nullParent->setName ("NullParent");
     
    438445  glEnd();
    439446
     447  glBegin(GL_LINES);
     448  for(float i=0.0; i<1; i+=.01)
     449    {
     450      glVertex3f(testCurve->calcPos(i).x, testCurve->calcPos(i).y, testCurve->calcPos(i).z);
     451    }
     452  glEnd();
    440453  glEndList();
    441454}
Note: See TracChangeset for help on using the changeset viewer.