Search Unity

navmesh with Z as up

Discussion in 'Navigation' started by Programmer-David, Dec 13, 2014.

  1. Programmer-David

    Programmer-David

    Joined:
    Sep 17, 2012
    Posts:
    21
    Hi,
    by default the Y axis is 'Up' for the navmesh.

    For my project i need to generate the navmesh with the Z axis as 'Up'.

    Is there a way to achieve this?

    regards,
    david
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
  3. Immanuel-Scholz

    Immanuel-Scholz

    Joined:
    Jun 8, 2013
    Posts:
    221
    Are there any plans to support this? Its quite crucial for using the navmesh system in any top-down styled 2D game..
     
  4. amit1532

    amit1532

    Joined:
    Jul 19, 2010
    Posts:
    305
    Id suggest to rotate the scene
     
  5. Immanuel-Scholz

    Immanuel-Scholz

    Joined:
    Jun 8, 2013
    Posts:
    221
    The current 2D tools only work in the X/Y plane.
    The current NavMesh only work in the X/Z plane.

    There is nothing we can rotate at the moment..


    The only thing we can do is having an extra GameObject for everything interacts with the navmesh in any way and manually update positions every frame between the 2D - X/Y object and the extra "3D - X/Z - only there for navmesh stuff" - object. Big performance fubar.
     
  6. tomosbach

    tomosbach

    Joined:
    Feb 25, 2021
    Posts:
    7
    Classic Unity approach to solving problems...
     
  7. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    In 2014 (the date of the post you quoted) it wasn't possible but in 2021, 7 years later you can explore the component based workflow for more functionality https://github.com/Unity-Technologies/NavMeshComponents or soon on package manager.

    Also, moderators are not employees.