Search Unity

Pathfinding on round world

Discussion in 'Editor & General Support' started by Sacasco, Jun 9, 2013.

  1. Sacasco

    Sacasco

    Joined:
    Jun 9, 2013
    Posts:
    2
    I'm trying to make a pathfinding system for AI's going around a sphere. Could anyone help me please?
     
  2. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    If you're using Unity Pro's builtin pathfinding or something else that uses nav meshes, I think it should work if you split your sphere up into several different nav meshes so that you could "unroll" it and have the sections flat on a plane (just like you do for texturing a spherical model), and then have off-mesh links (documentation) between each section so that you can loop from one side to the other.
     
  3. Sacasco

    Sacasco

    Joined:
    Jun 9, 2013
    Posts:
    2
    OK, thanks for your help. I won't be using the Pro version, but I think it will still work with the pathfinding at http://arongranberg.com/astar/.