Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Navmesh and flying units?

Discussion in 'Navigation' started by Arowx, Nov 20, 2015.

  1. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    6,710
    I'm working on the Tank AI challenge and had the idea to add an attack helicopter and assault mech as controllable vehicles.

    So I'm using the navmesh for the tanks and it's working great. But how do I add a flight navmesh e.g. a higher navmesh that will allow the helicopter to fly over buildings but avoid towers?

    Are there any 3d 'voxel' flying navigation solutions?
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    6,710
    OK I've tried adding a static flight plane and building a navmesh for it but it doesn't seem to work?
     
  3. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    1,849
    Well with some limitations you could probably put a plane at the height you want the heli to fly at, pathfind over that. When it takes off manually move it to the height of the plane then pathfind from there. You could even have multiple planes at different heights and allow it to move from plane to plane, although not sure what gameplay value that would actually add.