A year ago, I started developing a soccer game called OpenKickOff (www.openkickoff.org) based on the famous KickOff2 game.
Okay my trouble is... ball motion !
What I found a long time ago are those 2 equations providing x(t) and z(t):
x(t) = M/K*v*cos(angle))*(1-exp(-K/M*t))
z(t) = M/K*(v*sin(angle)+M*G/K)*(1-exp(-t*K/M))-M*G/K*t+h0
Where:
M is the ball mass
v the initial velocity at ball kick
angle the initial vertical angle at ball kick (0 = horizontal)
K air resistance constant
G = 9.81 m.s-2
This works fine but require high calculation along the game.
Are there other equations to approximate ball motion during a soccer game that are frequently used in game design ?
herve@openkickoff.org