Changeset 7919 in orxonox.OLD for trunk/src/lib/graphics/render2D/element_2d.cc
- Timestamp:
- May 28, 2006, 3:48:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r7871 r7919 62 62 this->toCoordinate = NULL; 63 63 this->toDirection = NULL; 64 65 this->size = Vector2D(0,0); 64 66 this->toSize = NULL; 65 this->setSize2D(1, 1);66 67 67 68 … … 448 449 this->relCoordinate += shift; 449 450 this->bRelCoorChanged = true; 450 451 451 } 452 452 … … 847 847 if (unlikely(this->toSize != NULL)) 848 848 { 849 Vector2D shiftSize = (*this->toSize - Vector2D(this->sizeX, this->sizeY)) *fabsf(dt)*bias;849 Vector2D shiftSize = (*this->toSize - this->size) *fabsf(dt)*bias; 850 850 if (likely((shiftSize).len() >= .001))//PNODE_ITERATION_DELTA)) 851 851 { 852 this->sizeX += shiftSize.x; 853 this->sizeY += shiftSize.y; 852 this->size += shiftSize; 854 853 } 855 854 else … … 1109 1108 if (level == 0) 1110 1109 glPopAttrib(); 1111 1112 1110 } 1113 1111
Note: See TracChangeset
for help on using the changeset viewer.