PDA

View Full Version : How to add 6 DOF movement to my engine?



Fastian
03-01-2001, 03:16 AM
Well I know from many tutorials how to do movement along x and z axis like

xpos -= (float)sin(rotation*piover180);
zpos -= (float)cos(rotation*piover180);

...but what if we have a descent or forsaken style movement, how can we do movement along x, z and y axis at the same time.

Fastian
03-01-2001, 03:22 AM
ok i've got it.... simple mathematics..... how could i be so stupid......