Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3014 in orxonox.OLD for orxonox/branches/bezierTrack/src/track.cc


Ignore:
Timestamp:
Nov 27, 2004, 4:12:26 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/bezierTrack: Track visible. It worked :)

File:
1 edited

Legend:

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

    r3013 r3014  
    6363
    6464
     65Vector Track::getPos (float t)
     66{
     67  return curve.calcPos (t);
     68}
     69
    6570/**
    6671   \brief calculate a camera Placement from a "look at"-Location
     
    8186  //  float r = (lookat->dist)*PI / l;
    8287  // camplc->r = trace.r + (trace.a * ((lookat->dist-10.0) / l)) + Vector(0,0,5.0);
    83   camplc->pos = curve.calcPos(t) + (curve.calcDir(t)* ((lookat->dist-10.0)/t)) + Vector(-10,0,0);
     88  camplc->pos = curve.calcPos(t) + (curve.calcDir(t)* ((lookat->dist-10.0)/t)) + Vector(-5,0,5);
    8489                                 
    8590  Vector w(0.0,0.0,0.0);
Note: See TracChangeset for help on using the changeset viewer.