Hello,
I have a code that do the calculation of the velocity needed for an object to travel a given distance (go from point A and stops exactly in point B):
Code:
distance = vec_dist(pointA.x, pointB.x);
velocity.x = distance * time_step;
accel.x = velocity.x / time_step;
displacement.x = velocity.x * time_step;
c_move(me,displacement.x,nullvector,ignore_you+glide);
However im trying to adapt this system with the physics engine and i´ve made several tests using phent_addvelcentral but i can´t make it work. I just ask for some guidelines because i´m stuck in this. Thanks in advance.
Cheers.