Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/lib/coord/null_parent.cc

    r3605 r3746  
    1919
    2020#include "null_parent.h"
     21#include "stdincl.h"
     22#include "vector.h"
     23#include "list.h"
    2124
    2225
     
    5154  this->parent = this;
    5255  this->mode = PNODE_ALL;
    53   this->absCoordinate = *absCoordinate;
     56  *this->absCoordinate = *absCoordinate;
    5457  this->setName("NullParent");
    5558}
     
    7477   worry, normaly...
    7578*/
    76 void NullParent::update ()
     79void NullParent::update (float dt)
    7780{
    7881
    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();
    8489  while( pn != NULL)
    8590    {
     
    8994      if( this->bRelDirChanged || this->bAbsDirChanged)
    9095        pn->parentDirChanged ();
    91       pn->update ();
    92       pn = this->children->nextElement ();
     96      pn->update (dt);
     97      //pn = this->children->nextElement ();
     98      pn = iterator->nextElement();
    9399    }
    94100
Note: See TracChangeset for help on using the changeset viewer.