Changeset 3349 in orxonox.OLD for orxonox/branches/parenting/src/track_manager.cc
- Timestamp:
- Jan 6, 2005, 3:39:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/track_manager.cc
r3348 r3349 40 40 this->childCount = 0; 41 41 this->name = NULL; 42 this->startPoint = Vector(0,0,0); 43 this->startTangentPoint = Vector(0,0,0); 42 44 this->curve = NULL; 43 45 this->children = NULL; … … 154 156 this->currentTrackElem->children[i]->ID = ++trackElemCount; 155 157 this->currentTrackElem->children[i]->startingTime = this->currentTrackElem->startingTime+this->currentTrackElem->duration; 158 this->currentTrackElem->children[i]->startPoint = this->currentTrackElem->curve->getNode(this->currentTrackElem->curve->getNodeCount()); 159 this->currentTrackElem->children[i]->startTangentPoint = (this->currentTrackElem->children[i]->startPoint *2) - this->currentTrackElem->curve->getNode(this->currentTrackElem->curve->getNodeCount()-1); 156 160 } 157 161 } … … 221 225 this->setCurveType(BEZIERCURVE); 222 226 this->currentTrackElem->isFresh = false; 227 if(this->currentTrackElem != this->firstTrackElem) 228 this->addPoint(this->currentTrackElem->startPoint); 229 this->addPoint(this->currentTrackElem->startTangentPoint); 230 223 231 } 224 232 this->currentTrackElem->curve->addNode(newPoint);
Note: See TracChangeset
for help on using the changeset viewer.