Hi everyone,

I added an enhancement to the new camera code so you can change your viewpoint in relation to the car. I didn't like always being directly behind it. Just change the function to this, then use the "left arrow" and "right arrow" to adjust your view angle of the car. We need to also add a function to reset the car. I keep flipping it on it's top

Code:

starter move_camera()
{
camera.arc=72;
camera.clip_near=20;
camera.clip_far=24000;
var cam_ang[3];
var cam_dist=500;
var pan_adjustment = 0;
cam_ang.pan=180;
cam_ang.tilt=30;
cam_ang.roll=0;

while(!p_vehicle){wait(1);}

while(1)
{
camera.x = p_vehicle.x - 350 * cos(p_vehicle.pan + pan_adjustment);
camera.y = p_vehicle.y - 350 * sin(p_vehicle.pan + pan_adjustment);
camera.z = p_vehicle.z + 100;
camera.pan = p_vehicle.pan + pan_adjustment;
camera.tilt = -10;

// Adjust viewing angle with left arrow and right arrow keys
if (key_cul == 1)
{ pan_adjustment += 1; }
if (key_cur == 1)
{ pan_adjustment -= 1; }

wait(1);
}
}



Regards, Ron