AI enemy drone

I am going to make a game with a player car and some computer-controlled drones which will follow the player and shoot it. Any idea about what I can go with, what I should learn, or just give some advice for making bot drones that will do their job naturally?

Rather than answer in detail, let me give you a couple of principles.

Methods such as Transform.lookAt and Vector3.MoveTowards will be helpful for locating and following.

You’ll have to keep adjusting the Y component, however, otherwise you drone will fall towards the player.

For realistic movement of the drone you are going to have to use spherical interpolation (slerp) between current velocity and new velocity - you can’t turn immediately in the air. Your drone will have to pitch and roll for good visual effect.

Aiming your shots will be interesting. You’ll need a good algorithm to anticipate the target, based on player position and velocity.

Some resources you might find useful:

Unity video on Slerp
Penny de Byl’s Unity course on AI, useful on behaviours