Search Unity

How to even begin coding an AI which flies around the player?

Discussion in 'Navigation' started by NinjaboyGames, Dec 4, 2018.

  1. NinjaboyGames

    NinjaboyGames

    Joined:
    Mar 13, 2016
    Posts:
    18
    Hello,
    I am in the process of creating a shooter game in which the enemies will fly close to the player and then fly in curves around the player. I assume a way I could handle this would be with curves that bend around the player like a sphere, but is there a better way to do such a behavior? Thank you!
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    So like a side-scrolling shooter? Yeah, curves would be a very simple and effective way of dealing with this.