I am doing a top down tank RTS project , I have the enemy jeeps able to scout out player locations and am now trying to figure out using that information to set up enemy attacks.
what I am trying to do is to get the AI to do things that I would do so if I was going to attack an enemy position I would move tanks to a kill circle say around a stationary gun turret.
I have things so that a stationary gun turret can be identified by the data the scout collects but I am not sure on how to do the math. here is an example of the data the scout collects.
[[StaticBody2D:1523], (1432.290039, 2048.649902), (1050.720215, 1849.259277)]
the first coordinate is the location where the stationary unit is , the second coordinate is where the jeep was when it detected the stationary. the numbers I have the scout getting are just experimental trying to figure out how to do things.
I am wondering if there are formulas for taking the stationary gun location and calculating 3 or 4 destinations around it to make a kill circle or is it just better and easier to make a helper 'compass' out of a couple of position2d's and use that to come up with destinations?
oh I already know where the Godot Vector math page is so please no links to that ;-)