28.11.2017, 23:49
Use this:


x0,y0 - start position
t - time (1,2,3,4,5..., you can use Float for better results)
alpha - angle for shoot
v0 - speed of shoot
g - gravitation (9.806)
x,y - current position for object in time t
cyklus for t (time) + caltulate position in time (more times it's better look, but many calculates).
I had used for golf engine on my server and works fine.
x0,y0 - start position
t - time (1,2,3,4,5..., you can use Float for better results)
alpha - angle for shoot
v0 - speed of shoot
g - gravitation (9.806)
x,y - current position for object in time t
cyklus for t (time) + caltulate position in time (more times it's better look, but many calculates).
I had used for golf engine on my server and works fine.

