Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

A* pathfinding

Discussion in 'Scripting' started by gorbit99, Jul 24, 2015.

  1. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    I'm making a procedural dungeon generating code. The rooms are done, doors are in place and i have an array of the dungeon (actually just unpassable and passable spaces) and an array of the door positions. I wan't to create the passageways now, but I dod not found anything about this. What i actually need is some help. How could I make a algorithm, or can someone link a good article explaining the steps of it, and secondly, how could i weight it?
     
  2. DuffyT

    DuffyT

    Joined:
    Dec 16, 2014
    Posts:
    37
    I created my pathfinding-scripts using these tutorials, just watch them all and implement what you need. It's all in there, the procedure, how the pathfinding works at it's core and even weights.

    First video of the series:
     
  3. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    lordofduct likes this.
  4. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,380