Member-only story
Making a RTS game #34: Improving unit navigation & adding unit formations 1/2 (Unity/C#)
Let’s keep working on our RTS and talk about unit navigation and formations!
⬅️ Tutorial #33: Using Unity’s terrain tools | TOC | Tutorial #35: Improving unit navigation & adding unit formations 2/2 ➡️
📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!
Disclaimer: once again, thanks to NeXuS for giving me this idea of tutorial! :)

In one of the earlier episodes of this series, we implemented a basic character unit movement system using Unity’s AI navigation. Then, we later incorporated this system inside a behaviour tree.
This is how we are able to make our characters move across the map by right-clicking either on the terrain (to set a specific destination point) or on another unit (to set it as target and make our unit follow it):

There is, however, a problem with this setup. Right now, if you select multiple character units and right-click on the ground, you’ll see that…