Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5396 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Oct 17, 2005, 10:31:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a BUG in the Element2D-class preventing the BindNode to functionate correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5382 r5396  
    686686                 projectPos+1,
    687687                 projectPos+2);
    688       this->absCoordinate.x = projectPos[0]/(float)GraphicsEngine::getInstance()->getResolutionX() + this->relCoordinate.x;
    689       this->absCoordinate.y = projectPos[1]/(float)GraphicsEngine::getInstance()->getResolutionY() + this->relCoordinate.y;
    690       this->absCoordinate.z = projectPos[2] + this->relCoordinate.z;
     688      this->prevRelCoordinate.x = this->absCoordinate.x = projectPos[0] /* /(float)GraphicsEngine::getInstance()->getResolutionX() */ + this->relCoordinate.x;
     689      this->prevRelCoordinate.y = this->absCoordinate.y = (float)GraphicsEngine::getInstance()->getResolutionY() -  projectPos[1] + this->relCoordinate.y;
     690      this->prevRelCoordinate.z = this->absCoordinate.z = projectPos[2] + this->relCoordinate.z;
     691      this->bRelCoorChanged = true;
    691692    }
    692693    else
Note: See TracChangeset for help on using the changeset viewer.