Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shamim-akhtar/tutorial-pathfinding

In this tutorial, we will implement a generic pathfinder in Unity using C#. We will approach the tutorial from a basic 2D grid-based pathfinding to a more robust generic pathfinder that we can use for a graph-based data structure. We will then apply our pathfinder to a variety of pathfinding problems.
https://github.com/shamim-akhtar/tutorial-pathfinding

csharp gamedevelopment pathfinding unity

Last synced: about 1 month ago
JSON representation

In this tutorial, we will implement a generic pathfinder in Unity using C#. We will approach the tutorial from a basic 2D grid-based pathfinding to a more robust generic pathfinder that we can use for a graph-based data structure. We will then apply our pathfinder to a variety of pathfinding problems.

Awesome Lists containing this project

README

        

# Generic Pathfinder in Unity using C#

## Note:
I am in the process of updating the codes to the latest Unity version and rewrite the tutorials. You can find the previous version of tutorial codes in the branch [2023](https://github.com/shamim-akhtar/tutorial-pathfinding/tree/2023)

![Unity](https://img.shields.io/badge/Unity-2022.3.2f1-green) ![C#](https://img.shields.io/badge/%20-C%23-blue)

In this tutorial, we will implement a generic pathfinder in Unity using C#. We will approach the tutorial from a basic 2D grid-based pathfinding to a more robust generic pathfinder that we can use for a graph-based data structure. We will then apply our pathfinder to a variety of pathfinding problems.

## Try the WebGL Pathfining Playground
[![Pathfinding Playground](https://github.com/shamim-akhtar/tutorial-pathfinding/blob/part-6-combined-demo/Pictures/Playground.jpg)](https://faramira.com/downloads/pathfinding-playground/)

### 1. [Implement a Generic Pathfinder in Unity using C#](https://faramira.com/implement-a-generic-pathfinder-in-unity-using-csharp/)

In this first tutorial, we create a generic pathfinder that is algorithm agnostic. Then we create three implementations of the pathfinder using the A*, Djikstra and Greedy best-first algorithm. We apply this generic pathfinder to various pathfinding problems (8-Puzzle, rectangular grid-based map and graph-based map).

### 2. [8-Puzzle Problem Using A* in C# and Unity](https://faramira.com/8-puzzle-problem-using-astar-in-csharp-and-unity/)

In the second tutorial, we apply our generic pathfinder and solve the 8-puzzle problem and demonstrate the application in Unity.

### 3. [2D Grid-Based Pathfinding Using C# and Unity](https://faramira.com/2d-grid-based-pathfinding-using-c-and-unity/)

In the third tutorial, we apply our generic pathfinder and solve the 2D grid-based pathfinding and demonstrate the application in Unity.

### 4. [Graph-Based Pathfinding Using C# in Unity](https://faramira.com/graph-based-pathfinding-using-c-in-unity/)

In the fourth tutorial, we apply our generic pathfinder and solve the graph-based pathfinding problem and demonstrate the application in Unity.