I have created a Kinematic equation of calculating the velocity required to launch a ball so that it passes through a given position. This velocity is being calculated for each time ball collides with the platform. Each time the amount of velocity remains the same but the horizontal distance travelled by the ball changes by a minor value which causes the ball to lose the track in the long run.

How can I maintain this horizontal distance (in my case 2f)?

Velocity Calculation Script

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.