The clear answer is a good summary of how to simulate the movement of an object, taking into account the initial trajectory (where the trajectory is considered as a direction and the velocity or in combination is a vector).
( ), , O P.
, P , O. .
, (.. [0, 0]), :
T_x = P_x - O_x
T_y = P_y - O_y
s_x = speed * cos(angle)
s_y = speed * sin(angle)
(x, y) (t) :
x = s_x * t
y = s_y * t - 0.5 * g * (t ^ 2)
T_x = s_x * t
T_y = -0.5 * g * (t ^ 2) + s_y * t
(t, s_x s_y) . , .
FWIW, s_x s_y speed, angle, - .
, , - , .
NB: , . , , , Pointy , . (.. 10 ), .