Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2006, 3:54:11 PM (19 years ago)
Author:
bensch
Message:

fixed the Shell

File:
1 edited

Legend:

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

    r7846 r7874  
    6262  this->toCoordinate = NULL;
    6363  this->toDirection = NULL;
     64
     65  this->size = Vector2D(0,0);
    6466  this->toSize = NULL;
    65   this->setSize2D(1, 1);
    6667
    6768
     
    847848    if (unlikely(this->toSize != NULL))
    848849    {
    849       Vector2D shiftSize = (*this->toSize - Vector2D(this->sizeX, this->sizeY)) *fabsf(dt)*bias;
     850      Vector2D shiftSize = (*this->toSize - this->size) *fabsf(dt)*bias;
    850851      if (likely((shiftSize).len() >= .001))//PNODE_ITERATION_DELTA))
    851852      {
    852         this->sizeX += shiftSize.x;
    853         this->sizeY += shiftSize.y;
     853        this->size += shiftSize;
    854854      }
    855855      else
Note: See TracChangeset for help on using the changeset viewer.