WebGL build of https://github.com/jhocking/MovingTargetAiming

In the interactive demo, the cannon constantly aims correctly to hit the missiles raining down. Tap the screen (or press any key) to fire a shot and watch it hit the missile.

Here's a QA page where I discuss the algorithm (plus link to the original Flash demo):

https://gamedev.stackexchange.com/questions/28481/how-to-lead-a-moving-target-fr...

A commenter there pointed out a big advantage of my approach (versus how other people were doing it): even if there is no exact solution, the shooter will still fire roughly at the target.

Leave a comment

Log in with itch.io to leave a comment.