Hi@all!,
got a question about the Vector2 Method .move_toward(). What does this do? I dont have any idea.
Manual says :" Moves the vector(A) toward to(B) by the fixed delta amount." But what fixed delta ? 1/FPS? and then the amount is what? a fraction of time eg. 0,016sec?
(A) is a positionvector and (B) as well? So after 0,16 sec (A) becomes (B)? I try to figure it out and for me it seems that .move_towards is some kind of lerp?
But if so whats the full amount/100% ? 0,016sec? 1sec? 1 Frame?
Did some testing:
var v = Vector2(0,0)
print(v.move_toward(Vector2(2.0),0.5)) = (0.5,0) why?
var v = Vector2(1,0)
print(v.move_toward(Vector2(2.0),0.5)) = (1.5,0) why? v now 1,0 instead 0,0 delta remains 0.5. What does this 1.5 mean?
Thx for any help!