Changeset 4719 in orxonox.OLD for orxonox/trunk/src/subprojects/collision_detection
- Timestamp:
- Jun 27, 2005, 2:27:25 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4718 r4719 43 43 44 44 int lastFrame, currentFrame, dt; 45 bool drawModel ;45 bool drawModel = false; 46 46 47 47 WorldEntity* a; 48 48 WorldEntity* b; 49 49 //Terrain* c; 50 bool animateModel = false; 50 51 51 52 void Framework::moduleInit(int argc, char** argv) … … 83 84 //c = new Terrain(); 84 85 85 b->setRelCoor(0.0, 0.0, - 15.0);86 b->setRelCoor(0.0, 0.0, -20.0); 86 87 b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 87 88 … … 231 232 232 233 233 b->shiftCoor(Vector(0.0, 0.0, iterata ));234 b->shiftCoor(Vector(0.0, 0.0, iterata * dt * 12.0f)); 234 235 235 236 … … 238 239 while( entity != NULL) 239 240 { 240 //entity->tick(dt); 241 if(unlikely(animateModel)) 242 entity->tick(dt); 241 243 entity = iterator->nextElement(); 242 244 } … … 335 337 336 338 339 int animateModels(GtkWidget* nonInterest, void* widget) 340 { 341 animateModel = !animateModel; 342 } 343 344 337 345 int drawPoints(GtkWidget* nonInterest, void* widget) 338 346 { … … 392 400 393 401 402 403 CheckButton* AnimateModels = new CheckButton("Animate Models"); 404 AnimateModels->connectSignal("clicked", (void*)AnimateModels, animateModels); 405 windowBox->fill(AnimateModels); 406 407 394 408 CheckButton* DrawPoints = new CheckButton("Draw Points"); 395 409 DrawPoints->connectSignal("clicked", (void*)DrawPoints, drawPoints);
Note: See TracChangeset
for help on using the changeset viewer.