reason for
Code:
vec_rotate(trace_coords.x, camera.pan);
vec_add(trace_coords.x, player.x);

is that i want it to shoot from the player entity
but aim exactly where my camera center is
i can however change my player.pan and camera tilt with mouse
but it will only shoot straight forward not downwards or upwards




but what about the tilt of the camera?
vec_add(trace_coords.x, camera.tilt);
or
vec_rotate(trace_coords.x, camera.tilt);
or something?

if he is going to be aiming up straight and down.

Last edited by Darkyyes; 01/26/09 16:14.

New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7