Posted By
|
Message
|
![](http://i50.tinypic.com/95mw47.jpg) CakeSpear
Registered 28/01/2004
Points 112
|
4th June, 2012 at 04/06/2012 12:06:39 -
Hi
I Have a moving Ball Object.
This is known about the Ball:
- Its starting coordinates ( X and Y )
- Its Angle ( 360 )
- Its Speed ( pixels moved in direction of Angle per Frame )
- Its Gravity ( pixels moved in Y direction per Frame )
Y coordinate 380 and above in the Frame is ground level.
...
I am trying to find a mathematical formula wich will predict the point of impact for my Ball.
...
What i have now is this Forumula.
Ball Xpos - Ball Y distace from Ground * (cos(angle) / sin(angle)
Wich predicts Balls impact point along ground level based on possition and direction, but does not account for Gravity.
Im not too good with this kind of stuff.
- Would it be possible to alter the current formula to account for Gravity, or do i need to come up with something completely different?
- Given the data above ( see top of thread ), how would i be able to predict the Balls point of impact along the Ground Level?
n/a
|
|
|