i made it draw all the segments of my wall every step and recalculate it. but it became really laggy

but it worked

.so now, im using a simmilar technic, but since its updating every time, i add a the last bit of the trail only by using models:

x1=path_get_x(p_xy,0.9);
y1=path_get_y(p_xy,0.9);
x2=path_get_x(p_xy,1);
y2=path_get_y(p_xy,1);
z1=path_get_y(p_z,0.9);
z2=path_get_y(p_xy,1);
d3d_model_wall(wallmod,x1,y1,z1,x2,y2,z2,1,1);

here is my path creating code:

if point_distance_3d(x,y,z,xprevious,yprevious,zprevious)>=0.5
{
path_add_point(p_xy,x,y,0);
path_add_point(p_xy,x,y,0);
path_add_point(p_z,path_get_length+1,z,0);
}

and here is how i draw it:

d3d_model_draw(wallmod,0,0,0,background_get_texture(tex_1));

so the problem is; its not showing up,all the rest is (the world and bike)!!!! there is no wall whatsoever!!!!!

**Edited by fel666, 07 March 2012 - 06:26 PM.**