Changeset 8316 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Jun 11, 2006, 1:57:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r8035 r8316 961 961 /* update the current absCoordinate */ 962 962 this->prevRelCoordinate = this->relCoordinate; 963 float sine = sin(this->parent->getAbsDir2D());964 float cose = cos(this->parent->getAbsDir2D());963 // float sine = sin(this->parent->getAbsDir2D()); 964 // float cose = cos(this->parent->getAbsDir2D()); 965 965 // this->absCoordinate.x = this->relCoordinate.x*cose - this->relCoordinate.y*sine + this->parent->getRelCoor2D().x*(1-cose) +this->parent->getRelCoor2D().y*sine; 966 966 // this->absCoordinate.y = this->relCoordinate.x*sine + this->relCoordinate.y*cose + this->parent->getRelCoor2D().y*(1-cose) +this->parent->getRelCoor2D().x*sine; … … 1167 1167 else if (parentingMode == E2D_PARENT_ROTATE_AND_MOVE) 1168 1168 return "rotate-and-move"; 1169 else return "all"; 1169 1170 } 1170 1171 … … 1186 1187 else if (parentingMode == "rotate-and-move") 1187 1188 return (E2D_PARENT_ROTATE_AND_MOVE); 1189 else return E2D_PARENT_ALL; 1188 1190 } 1189 1191
Note: See TracChangeset
for help on using the changeset viewer.