Glad you liked it! The way I made the ai work is by setting a target position for the dot to move to for every frame. When a beam is shot, it will shift this target position based on the direction of the beam and how close it is to the dot, and after that I used unity's SmoothDamp function to smoothly change the dot's position towards this target position, and tinkering with the parameters a bit to achieve a smooth looking movement.