hey!
i hope you can help me with the following problem. i've written a script which accelerates a model. now i want to have the acceleration fps-independent. have a look at the following: [space] is pressed, force.z is set to 5 (jumping). i use vec_accelerate to calculate the acceleration for the model:
Code:
vec_accelerate(temp, my.vel, force, 0.8);
which variables do i need to multiplicate with time_step to gain the required independence? i've tried dividing force through time_step, this makes the distance covered by the model independent (always the same distance). but the movement is too slow. same if i divide force through time_step twice and later on multiply temp by time_step.
the problem is, if i set fps_max to 10 for example, i can suddenly jump way too high if i leave all the variables untouched by time_step.
i'm stuck here and hope you can point me in the right direction, thanks,
joey.