Hi
I have a moving Ball.
The ball uses floating point coordinates.
I want to be able to determine the Balls final Yvelocity ahead of time.
The Ball moves forward by Cos and Sin, by having an Angle and a Speed.
Every Frame this happens:
- G is added to the Balls Gravity_
- Balls y coordinated is displaced Gravity nr of pixels
...
This here part is not directly related to my problem, but the Ball is also affected by Wind in the same maner as Gravity ( see above ).
I am able to determin the correct Xvelocity of the Ball ahead of time like this:
Cos( Angle ) * Speed + W * Time
This works accuratly...
...
However what i want is to be able to determin the final Yvelocity ahead of time.
I have tried to do something like this:
Sin( Angle ) * Speed + G * Time
But it doesnt seem to produce results remotely accurate.
...
I want to be able to determine the Balls final Yvelocity ahead of time.
How can i solve this?
Ami doing something wrong?