Город МОСКОВСКИЙ
00:31:44

How to Navigate units in Godot 4 Tutorial : Navigation Agents - Making an RTS Series

Аватар
Игры и Исследования
Просмотры:
58
Дата загрузки:
25.10.2023 17:15
Длительность:
00:31:44
Категория:
Технологии и интернет

Описание

LET'S MAKE our units move with dynamic collision avoidance! Here we will be moving units using the navigation agent with dynamic collision avoidance, this is also part of our RTS project.

If you never used the navigation agent, this is a practical tutorial that will get you up to speed on how to use it, In order to move the units, we are also projecting a raycast from the camera to the mouse position, anything the raycast hits we can grab that collision position and use it as navigation goal for our units, later we can choose to re-manage our collision layers to only hit the map parts,

00:00 Intro
00:17 Taking care of our nodes
01:22 Mouse raycasted coordinates
06:29 Input mouse coords function
14:28 Updating nav agent algorithm
16:43 Using the computed velocity
19:54 Improving the navigation
29:54 Testing the collision avoidance
31:27 Outro

Рекомендуемые видео