Changeset 9989 in orxonox.OLD for branches/playability/src/world_entities/test_entity2.cc
- Timestamp:
- Dec 3, 2006, 5:07:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/test_entity2.cc
r9987 r9989 84 84 this->material->setAmbient(1.0, 0.0, 1.0); 85 85 86 this->angle = 0; 87 this->rotationSpeed = 10; 88 86 89 //this->material->setDiffuseMap("maps/torp2.png"); 87 90 } … … 95 98 { 96 99 WorldEntity::loadParams(root); 100 } 101 102 103 void TestEntity2::updateAngle() 104 { 105 this->angle = this->angle + this->rotationSpeed; 97 106 } 98 107 … … 231 240 glEnd(); 232 241 242 //this->angle += this->rotationSpeed; 243 glRotatef(this->angle, 0.0, 1.0, 0.0); 244 233 245 glPopMatrix(); 234 246 glPopAttrib(); … … 245 257 this->setParent(pl); 246 258 247 } 248 249 250 251 252 253 259 this->updateAngle(); 260 } 261 262 263 264 265 266
Note: See TracChangeset
for help on using the changeset viewer.