How to move object
#8

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.
Reply


Messages In This Thread
How to move object - by MasterCodez - 28.11.2017, 04:26
Re: How to move object - by Daymen - 28.11.2017, 05:12
Re: How to move object - by Lucases - 28.11.2017, 05:41
Re: How to move object - by OneDay - 28.11.2017, 09:40
Re: How to move object - by Tagic - 28.11.2017, 10:09
Re: How to move object - by MasterCodez - 28.11.2017, 12:56
Re: How to move object - by Tagic - 28.11.2017, 13:12
Re: How to move object - by ATomas - 28.11.2017, 23:49
Re: How to move object - by MasterCodez - 29.11.2017, 08:12
Re: How to move object - by FrezQ - 29.11.2017, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)