//x and y lx=x+lengthdir_x(whidth/2,image_angle+90); ly=y+lengthdir_y(whidth/2,image_angle+90); rx=x+lengthdir_x(whidth/2,image_angle-90); ry=y+lengthdir_y(whidth/2,image_angle-90); fx=x+lengthdir_x(length/2,image_angle); fy=y+lengthdir_y(length/2,image_angle); bx=x+lengthdir_x(length/2,image_angle+180); by=y+lengthdir_y(length/2,image_angle+180); //z lz=scr_terrain_get_z(lx,ly); rz=scr_terrain_get_z(rx,ry); fz=scr_terrain_get_z(fx,fy); bz=scr_terrain_get_z(bx,by); wzd=(lz-rz); lzd=(fz-bz); //ang xang=(point_direction(ry,rz,ly,lz)); yang=(point_direction(bx,bz,fx,fz))+180;
but the car does not change angle correctly.
what code should i use to make it work correctly?
if you know any or know an other topic covering it, could u please post?
Edited by fel666, 12 February 2012 - 02:48 PM.











