Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 5:40:09 PM (17 years ago)
Author:
nicolasc
Message:

rotating TE2, hbolt still not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/test_entity2.cc

    r9989 r9991  
    8585
    8686  this->angle = 0;
    87   this->rotationSpeed = 10;
     87  this->rotationSpeed = 3;
    8888
    8989  //this->material->setDiffuseMap("maps/torp2.png");
     
    122122    Vector tmpRot = this->getAbsDir().getSpacialAxis();
    123123    glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    124 
     124    glRotatef(this->angle, 0.0, 0.0, -1.0);
    125125//PRINTF(0)("axis: %f\n", axis);
    126126
     
    240240  glEnd();
    241241
    242   //this->angle += this->rotationSpeed;
    243   glRotatef(this->angle, 0.0, 1.0, 0.0);
    244 
    245242  glPopMatrix();
    246243  glPopAttrib();
Note: See TracChangeset for help on using the changeset viewer.