Changeset 3534 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Mar 13, 2005, 11:30:11 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r3531 r3534 396 396 // printf("%s", this->objectName); 397 397 398 if( this->mode == MOVEMENT || this->mode == ALL)398 if( this->mode == MOVEMENT ) 399 399 { 400 400 if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/) … … 428 428 this->absDirection = parent->getAbsDir() * this->relDirection; 429 429 } 430 } 430 } 431 432 if( this->mode == ALL) 433 { 434 if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/) 435 { 436 printf("PNode::update () - this->bAbsCoorChanged = true\n"); 437 /* if you have set the absolute coordinates this overrides all other changes */ 438 this->relCoordinate = this->absCoordinate - parent->getAbsCoor (); 439 } 440 else if( this->bRelCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/) 441 { 442 /*this is bad style... must be deleted later - just for testing*/ 443 if( this->parent == NULL) 444 this->absCoordinate = this->relCoordinate; 445 else 446 this->absCoordinate = parent->getAbsCoor() + parent->getAbsDir().apply(this->relCoordinate); /* update the current absCoordinate */ 447 } 448 } 449 450 431 451 PNode* pn = this->children->enumerate(); 432 452 while( pn != NULL) -
orxonox/trunk/src/lib/util/list.h
r3532 r3534 137 137 delete this->currentEl; 138 138 this->currentEl = te; 139 this->size--; 139 140 return; 140 141 }
Note: See TracChangeset
for help on using the changeset viewer.