Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/branches/parenting: derivation-curve implemented.

File:
1 edited

Legend:

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

    r3319 r3321  
    159159            testCurve->addNode(Vector(20, 0,10));
    160160            testCurve->addNode(Vector(50, 7,-5));
     161            testCurve->addNode(Vector(60, -20,0));
     162            testCurve->addNode(Vector(60, 10,0));
    161163           
    162164            this->nullParent = NullParent::getInstance ();
     
    448450  for(float i=0.0; i<1; i+=.01)
    449451    {
     452      printf("%f %f %f\n",testCurve->calcDir(i).x,testCurve->calcDir(i).y,testCurve->calcDir(i).z);
    450453      glVertex3f(testCurve->calcPos(i).x, testCurve->calcPos(i).y, testCurve->calcPos(i).z);
     454      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);
    451455    }
    452456  glEnd();
Note: See TracChangeset for help on using the changeset viewer.