28.11.2017, 04:26

How to move object like this picture and check it if them fallen into the ground.
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. |