A* pathfinding is an effective algorithm for calculating the path from point A to point B on a grid. You can setup your environment with different tiles, adjust the costs of movement for each tile and you have a robust and simple way to make AI for your game.
Code - [ Ссылка ]
👍 Like and 🔔Subscribe for More Unity and C# Tutorials [ Ссылка ]
🌟 Support My Work and Unlock Exclusive Content! 🌟
👉 Patreon: [ Ссылка ]
🎮 Join Our Developer Community!
💬 Discord: [ Ссылка ]
💖 Support Me Financially
☕ PayPal, Revolut: marek.freedom.coding@gmail.com
Are you looking for a Unity/C# tutor? Contact me here - marek.freedom.coding@gmail.com
Website - [ Ссылка ]
Timestamps:
00:00 How Does It Work?
01:48 Creating Grid
04:27 Find Path Function
05:28 Calculating Distance
07:34 Find Path Function
09:15 Searching Cells
12:12 Constructing Final Path
13:17 Final Result!
Ещё видео!