🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Move Equation HELP!

Started by
0 comments, last by UsefulIdiot 24 years ago
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];
Advertisement
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
Visit our homepage: www.rarebyte.de.stGA

This topic is closed to new replies.

Advertisement