Hi, i don't know if this has already been suggested as i have'nt read every single line but I do mechanics at school and this seems to be a common projectiles question.
The only thing missing is the distance from the ball to the player, but i guess that could be calculated with a vector function or something like that. Once you have the distance the ball is from the player, the time can be found easily.
u = inital velocity
Z = angle to ground
g = acceleration due to gravity (9.8)
t = time
Here are 4 equations of projectile motion...
Displacement (x) = utcosZ
Displacement (y) = utsinZ - 0.5gt^2
Velocity (x) = ucosZ
Velocity (y) = usinZ - gt
Example: distance to player is 30, angle is 15 and intial velocity is 10, trying to find time takes to reach player.
Horizontal velocity = 10cos15 = 9.66....
time = distance/speed = 30/9.66 = 3.11
I know I haven't explained it the best I could, but hopefully this could point you in the right direction.
Sorry if any of this has been mentioned before or that it is totally useless.
DJB MASTER...
Last edited by DJBMASTER; 04/16/08 16:28.