Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

A* Pathfinding help

$
0
0
Hello, I am trying to implement some very basic pathfinding.

Here is the main excerpt from my code;

Code (csharp):
  1.  
  2. using UnityEngine;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5.  
  6. //Tile class
  7. public class Tile
  8. {
  9.     public TileState tileState;                //The state of the tile - empty, wall, floor etc
  10.    
  11.     public int x;                            //x position (Normalized)
  12.     public int y;                            //y position (Normalized)
  13.    
  14.     public int g;...
A* Pathfinding help

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>