Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/lib/coord/null_parent.cc
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/coord/null_parent.cc
r3605 r3746 19 19 20 20 #include "null_parent.h" 21 #include "stdincl.h" 22 #include "vector.h" 23 #include "list.h" 21 24 22 25 … … 51 54 this->parent = this; 52 55 this->mode = PNODE_ALL; 53 this->absCoordinate = *absCoordinate;56 *this->absCoordinate = *absCoordinate; 54 57 this->setName("NullParent"); 55 58 } … … 74 77 worry, normaly... 75 78 */ 76 void NullParent::update ( )79 void NullParent::update (float dt) 77 80 { 78 81 79 PRINTF(4)("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z); 80 this->absCoordinate = this->relCoordinate; 81 this->absDirection = parent->getAbsDir () * this->relDirection; 82 83 PNode* pn = this->children->enumerate (); 82 PRINTF(4)("NullParent::update - (%f, %f, %f)\n", this->absCoordinate->x, this->absCoordinate->y, this->absCoordinate->z); 83 *this->absCoordinate = *this->relCoordinate; 84 *this->absDirection = parent->getAbsDir () * *this->relDirection; 85 86 tIterator<PNode>* iterator = this->children->getIterator(); 87 //PNode* pn = this->children->enumerate (); 88 PNode* pn = iterator->nextElement(); 84 89 while( pn != NULL) 85 90 { … … 89 94 if( this->bRelDirChanged || this->bAbsDirChanged) 90 95 pn->parentDirChanged (); 91 pn->update (); 92 pn = this->children->nextElement (); 96 pn->update (dt); 97 //pn = this->children->nextElement (); 98 pn = iterator->nextElement(); 93 99 } 94 100
Note: See TracChangeset
for help on using the changeset viewer.