Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2005, 2:27:25 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some more graphics features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4718 r4719  
    4343
    4444int lastFrame, currentFrame, dt;
    45 bool drawModel;
     45bool drawModel = false;
    4646
    4747WorldEntity* a;
    4848WorldEntity* b;
    4949//Terrain* c;
     50bool animateModel = false;
    5051
    5152void Framework::moduleInit(int argc, char** argv)
     
    8384  //c = new Terrain();
    8485
    85   b->setRelCoor(0.0, 0.0, -15.0);
     86  b->setRelCoor(0.0, 0.0, -20.0);
    8687  b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    8788
     
    231232
    232233
    233   b->shiftCoor(Vector(0.0, 0.0, iterata));
     234  b->shiftCoor(Vector(0.0, 0.0, iterata * dt * 12.0f));
    234235
    235236
     
    238239  while( entity != NULL)
    239240  {
    240     //entity->tick(dt);
     241    if(unlikely(animateModel))
     242      entity->tick(dt);
    241243    entity = iterator->nextElement();
    242244  }
     
    335337
    336338
     339int animateModels(GtkWidget* nonInterest, void* widget)
     340{
     341  animateModel = !animateModel;
     342}
     343
     344
    337345int drawPoints(GtkWidget* nonInterest, void* widget)
    338346{
     
    392400
    393401
     402
     403      CheckButton* AnimateModels = new CheckButton("Animate Models");
     404      AnimateModels->connectSignal("clicked", (void*)AnimateModels, animateModels);
     405      windowBox->fill(AnimateModels);
     406
     407
    394408      CheckButton* DrawPoints = new CheckButton("Draw Points");
    395409      DrawPoints->connectSignal("clicked", (void*)DrawPoints, drawPoints);
Note: See TracChangeset for help on using the changeset viewer.