/ Published in: C++
Some functions
Expand |
Embed | Plain Text
float currRot = (360/currAngle)*100; //--------- int locationX, int locationZ; float PI = 3.141592; float angle_radians = angle * (float)PI / (float)180; float myX = locationX + currAngle * (float)cos(angle_radians); float myZ = locationZ + currAngle * (float)sin(angle_radians); //----------- glColor3d(.5, .5, 0); glTranslated(x+myX+(i*(size/10)), y, z+myZ+(i*(size/10))); glRotated(currRot, 1, 0, 0); for (int j = 0; j < 5; j++) { glLoadIdentity(); glColor3d(0, 1, 0); glTranslated(x+myX+(i*(size/10))+(j*(size/10)), y, z+myZ+(i*(size/10))+(j*(size/10))); glRotated(currRot);
You need to login to post a comment.
