Skip to content

arifdag/Pathfinding-Using-Different-Search-Algorithms-In-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfinding Using Different Search Algorithms

This project showcases various pathfinding algorithms implemented in a grid-based system. It demonstrates how different algorithms solve the pathfinding problem, highlighting their strengths and weaknesses. The project is built with the aim of providing a comprehensive comparison and a practical implementation reference for anyone interested in pathfinding techniques.

Table of Contents

Overview

Pathfinding is an essential aspect of many applications, especially in game development and robotics. This project compares different search algorithms, showing how they navigate through a grid to find the shortest path from a start point to an end point.

Overview Image Visualization of pathfinding in action.

Features

  • Visualization of pathfinding algorithms in action
  • Comparison of algorithm efficiency and performance
  • Customizable grid size and obstacle placement
  • Move units and target by selecting them with the mouse

Feature Image Example of customizable grid and obstacle placement.

Algorithms Implemented

Algorithm Comparison1 Algorithm Comparison2 Comparison of different pathfinding algorithms.

Setup

  1. Clone the repository:
    git clone https://github.com/KaNaruto/Pathfinding-Using-Different-Search-Algorithms-In-Unity.git
  2. Open Unity Hub.
  3. Go to the "Projects" tab and click the "Add" button.
  4. Navigate to the cloned repository folder and select it.
  5. Wait for Unity to load the project.

Usage

  1. Launch the Unity Editor and open the project.
  2. Customize the grid by setting the start point, end point, and obstacles using the provided UI.
  3. Select the pathfinding algorithm you want to visualize from the dropdown menu.
  4. Click the "Start" button to see the algorithm in action.

Grid Gizmos Customizing the grid.

Contributing

Contributions are welcome! If you have any improvements or new features to add, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Create a new Pull Request.

Acknowledgments

Inspiration from various pathfinding resources and tutorials one of them was Sebastian Lague Pathfinding Tutorial.

For further understanding and a visual guide on pathfinding, check out this YouTube video.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors