Original Post
Hello everyone,
I''ve written a simple program that''s suppose to rotate a
3d wireframe cube on the screen, the only problem is that
even though I specify an angle for both the x and the y
the program only rotates around the y. I''ve included my
function below, any help would be appreciated.
Thank You
Boolean0110
void RotateObject ( float angx, float angy, float angz )
{
float x, y, z;
float newx, newy, newz;
float worldZ = testObject.worldPos.z;
float csx, snx;
float csy, sny;
float csz, snz;
csx = cos(angx*3.14/180);
snx = sin(angx*3.14/180);
csy = cos(angy*3.14/180);
sny = sin(angy*3.14/180);
csz = cos(angz*3.14/180);
snz = sin(angz*3.14/180);
// Rotate original set of vertices
tempObject = testObject;
for ( int currPoly=0; currPoly