I have a position point that moves towards a destination point by a factor of:
position = position + distance * X;
where:
distance = destination - position;
and `X` is a factor chosen by the code between 0.0f and 1.0f (0 = stopped and 1 = instantaneous motion);
And it all works fine, except the motion speeds up and slows down depending on the framerate. I have access to the delta time of the frames, but I have no idea how to fit it in the formula. I've tried many combinations and failed.
Any help?