NavMeshQuery allows you to use navigation meshes with DOTS, even though NavMeshAgents are not supported. I will show you how to use NavMeshQuery to calculate the path for the enemies, and also how to make them move towards the player. In the next part, we will also make the pathfinding multithreaded for maximum performance.
CODE - https://github.com/Freedom-Coding/Uni...
PathUtils - https://github.com/Unity-Technologies...
Forging Station Tutorial - • Dynamic Obstacle Avoidance with Nav M...
👍 Like and 🔔Subscribe for More Unity and C# Tutorials / @freedomcoding
🌟 Support My Work and Unlock Exclusive Content! 🌟
👉 Patreon: / freedomcoding
🎮 Join Our Developer Community!
💬 Discord: / discord
💖 Support Me Financially
☕ PayPal: [email protected]
Are you looking for a Unity/C# tutor? Contact me here - [email protected]
Website - https://www.freedom-coding.com
Timestamps:
00:00 Why To Use NavMeshQuery?
00:16 Scene & NavMesh Setup
01:20 Required Packages
01:50 NavAgent Component
03:11 NavAgent Authoring
04:33 Pathfinding System
06:52 Calculating Path
11:39 Moving NavAgents
13:14 Final Result!