Move Equation HELP!
I''m trying to move objects forward/backwards in the way they are rotated... so far i have
/* X rotation */
dir[0]=-sin(x*M_PI/180.0);
dir[1]=cos(x*M_PI/180.0);
dir[2]=0;
/* X/Y rotation */
dir[0]=sin(x*M_PI/180.0);
dir[1]=cos(y*M_PI/180.0);
dir[2]=cos(x*M_PI/180.0)*sin(y*M_PI/180.0);
but whats X/Y/Z and is the X/Y correct? After i find the rotations i add then into the positions of the object:
pos.x+=temp*dir[0];
pos.y+=temp*dir[1];
pos.z+=temp*dir[2];
What is moving objects forward/backward in the way they are rotated???
I don''t know exactly what you want to do.
Visit our homepage: www.rarebyte.de.st
GA
I don''t know exactly what you want to do.
Visit our homepage: www.rarebyte.de.st
GA
Visit our homepage: www.rarebyte.de.stGA
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement