Changeset 3500 in orxonox.OLD for orxonox/branches/trackManager/src/track_node.cc
- Timestamp:
- Mar 11, 2005, 3:04:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/trackManager/src/track_node.cc
r3463 r3500 66 66 } 67 67 68 /**69 \brief updates the absCoordinate/absDirection70 71 this is used to go through the parent-tree to update all the absolute coordinates72 and directions. this update should be done by the engine, so you don't have to73 worry, normaly...74 */75 void TrackNode::update (float timeStamp)76 {77 this->absCoordinate = trackManager->calcPos();78 this->absDirection = Quaternion(trackManager->calcDir(), Vector(0,1,0));79 80 PNode* pn = this->children->enumerate ();81 while( pn != NULL)82 {83 /* if this node has changed, make sure, that all children are updated also */84 if( this->bRelCoorChanged || this->bAbsCoorChanged)85 pn->parentCoorChanged ();86 if( this->bRelDirChanged || this->bAbsDirChanged)87 pn->parentDirChanged ();88 pn->update (timeStamp);89 pn = this->children->nextElement ();90 }91 92 this->timeStamp = timeStamp;93 this->bRelCoorChanged = false;94 this->bAbsCoorChanged = false;95 this->bRelDirChanged = false;96 this->bAbsDirChanged = false;97 }
Note: See TracChangeset
for help on using the changeset viewer.