I knew I should have paid more attention in trig' class. But for some reason I cant seem to remember this rather simple problem.
I have an angle value (-180 to 180) from the camera.pan property. I want to change the application of x/y movment so that it is relitive to this angle.
my_speed.x = 25 * (key_cur - key_cul) * cos(camera.pan);
my_speed.y = 25 * (key_cuu - key_cud) * sin(camera.pan);
I know this isn't the full calculation I need, but I realy cant think of what I'm missing. Anyone less tired then myself remeber trig 101?
Last edited by jfizer; 08/30/07 06:37.