Changeset 3014 in orxonox.OLD for orxonox/branches/bezierTrack/src/track.cc
- Timestamp:
- Nov 27, 2004, 4:12:26 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bezierTrack/src/track.cc
r3013 r3014 63 63 64 64 65 Vector Track::getPos (float t) 66 { 67 return curve.calcPos (t); 68 } 69 65 70 /** 66 71 \brief calculate a camera Placement from a "look at"-Location … … 81 86 // float r = (lookat->dist)*PI / l; 82 87 // 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); 84 89 85 90 Vector w(0.0,0.0,0.0);
Note: See TracChangeset
for help on using the changeset viewer.