I tried variations of these two methods. Both place the model at 0 rather than on the terrain surface.

But I don't know what I'm doing anyway. Just experimenting.


temp.z -= 500; // trace downwards 500 quants below
result -= c_trace (my.pos,temp,IGNORE_ME|IGNORE_PASSABLE|IGNORE_MODELS|IGNORE_SPRITES|use_box);
my.z = result;


vec_set(temp, my.x);
temp.z -= 500; // trace downwards 500 quants below
target = c_trace (my.x,temp,IGNORE_ME|IGNORE_PASSABLE|IGNORE_MODELS|IGNORE_SPRITES|use_box);
my.z = target;



Last edited by JazzDude; 12/03/07 19:01.