Code:
int cam_height = 100;
VECTOR ground;
VECTOR temp_cam;
vec_zero(ground);
vec_zero(temp_cam);
temp_cam.x = camera.x;
temp_cam.y = camera.y;
vec_set(ground, temp_cam.x);
ground.z -= 10000;
trace_mode = IGNORE_ME + IGNORE_PASSABLE + USE_BOX;
ground.z = -c_trace(temp_cam.x,ground,trace_mode);
camera.z = ground.z + cam_height;
I think that the reason it's jumpy is because the height of the terrain changes sporadically depending on the slope and even though I am setting USE_BOX the camera isn't very 'fat.'
So if there was some way I could make the camera 'fatter' so that it's collision box would be bigger, I think that that would help.
Thanks for your reply

,