Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  5. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  6. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Navmesh and flying units?

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

  1. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    6,334
    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,334
    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,577
    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.