Enemy Pirate Ship AI

Hello, I am making a pirate game. I’m trying to achieve an enemy pirate ship AI. I’ve made an attempt but then scrapped it because it was terrible. Basically one idea I had was for the ship to follow you a certain distance, but when it gets into firing range, circle the target with one side facing the target. I’ve tried transform.RotateAround();, but for some reason when I try to subtract 90 from the y-axis to get the side to face the target, it just stays at a fixed (0,0,0) angle.

Any help would be greatly appreciated!

Simple search on google can always help :wink: Google If you don’t find anything appealing on that search try the AI on the Unity asset store. There are a few free ones too!