Thank you for the response! laugh "my_height" is distance to ground, which I get from "c_trace" and lowest point of the BBOX:
Code:
vec_set(vecFrom, my.x);
vec_set(vecTo, my.x);
vecTo.z -= 4000;
c_trace(vecFrom, vecTo, trace_mode);  
// get lowest point of BBOX:
vec_for_min(temp_vec, my);
// get distance to ground:
my_height = my.z + temp_vec.z - target.z;

I mostly use variables (such as "my_heigh" etc). But I didn't understand your last question, sorry for my English man.
If you asked what framerate (fps_max) am I aiming for, then I'd say "60" laugh If I don't limit, I get stable 512 fps and jumping behavior.

Edit: BTW, thank you! I guess you were right! When I changed "-10" into positive value in this line:
Code:
absdist.z = -maxv(my_height, -10 * time_step);

Jumping problem disappeared! laugh But now, movement on slopes isn't smooth (it's almost smooth, jerking a little bit).
When I limit max fps by 60, it's very smooth (as it was before changes) on slopes! laugh But still if I try it with 512, it isn't.


EDIT2: I've increased that positive value from 10 into 100, and it's smooth now laugh But I need to test it. Maybe that will affect on something...
Math was always my weak point.. smirk Thank you once again my friend! I appreciate it!

EDIT3: I've found what was causing those little jerking stuff on slopes! laugh That wasn't gravity stuff (I fixed it completely with your help)!!
Problem was with camera Z smoothing script, but it works perfect now! laugh Thanks once again!!!

Last edited by 3run; 08/23/12 18:29.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung