Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Is there a simple way to make a drone plane follow player in 3d?

Discussion in 'Navigation' started by patriotpl22, Nov 23, 2020.

  1. patriotpl22

    patriotpl22

    Joined:
    Oct 12, 2020
    Posts:
    1
    I'm working on a project for my engineer's degree and it has to do with modern aircraft and unmanned jet aircraft. Mostly the latter. I made a (very) simplified flight model, which I think will do the job, but now I'm struggling with making my drone fly in a formation with me. I've created an empty object to represent the point in space for AI to be in and I'm trying to use Vector3.Dot to calculate where it should be turning, however being kinda noob in algebra I can't seem to figure it out. I should probably mention that everything is happening in 3 dimensions, which is why I couldn't (or didn't know how to) use NavMeshAgent. Is there something I'm missing? Can you help me somehow?