Hey there fellow Lite-C'ers! I just used vec_accelerate in a test-project and got ugly jerking.
So i made a brand new test project with the following easy code.

Code:

///////////////////////////////

#include <acknex.h>
#include <default.c>

///////////////////////////////



function testentity()
{
while(1)
{
vec_accelerate(my.skill1, my.skill10, vector(mouse_left*3,0,0), 0.5);
c_move (me, me.skill1, nullvector ,NULL);
wait(1);
}
}

function main()
{
level_load("test.WMB");
wait(2);

fps_max = 80;

wait(1);

ent_create("cbabe.mdl",nullvector,testentity);
}



Nothing more, an empty test.wmb level, compiled it and run. Again i got the same problems. What happens is that when i press the left mouse button to accelerate the cbabe.mdl it gets accelerated correctly until the point it reaches the maximum speed -> then the jerking begins. This looks like some kind of stop and go motion wich is inacceptable.

Maybe i'm doing something completely wrong here? But i think above is the correct way to use vec_accelerate according to the manual? Have i overlooked something? Do you get the jerky motion too?

Thanks for any help on this!

Last edited by ulf; 01/27/08 17:34.