The final part of my big project! Artificial Intelligence is given to the worms so they can destroy each other! Mwa ha ha… Anyway, here an AI state machine is used to allow the AI to manipulate the input controls instead of the player. It’s a nice approach as it means the game and physics code is untouched.
Big thanks to MaGetzUb from the OneLoneCoder Discord Server for the track – it’s awesome!
And for derivation of the projectile formula, this guy nails it: https://youtu.be/32PiZDW40VI