The turret learns from it's mistakes and re-positions itself to hit the target! _______________ Just click the green flag and it'll position the target automatically! The target is the circle with the border. ______________________________ The target is draggable. You can also change the thrust (the force in which it shoots the bullet from), but it can adjust it itself to hit a target out of range.
Made completely by me... @Hammykat-_- :3 I'll be posting new versions this project to make the AI better and do harder tasks:) UPDATE LOG: V1 (5/14/2026): - Created basic turret AI - Added target - Created bullet physics AI behaviour: The AI shoots a random bullet at first. The AI uses the bullet's y position when it gets close to the target's x position to find out how far away the bullet is on the y axis from the target. Then, it re-positions itself according to the distance, ensuring that it always hits the second time. If the target is high up, the AI will go to the top, reposition itself to go a bit lower, and then make the thrust higher to hit the target.