reason for
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.