video thumbnail 26:51
A* Pathfinding (E05: units)

2015-01-05

[public] 135K views, 2.16K likes, 18.0 dislikes audio only

In this episode we're going to implement some units which can requests paths and follow them through the game world.

Source code: https://github.com/SebLague/Pathfinding

If you'd like to support these videos, you can do so with a recurring pledge on Patreon, or a one-time donation through PayPal. https://www.patreon.com/SebastianLague

https://www.paypal.me/SebastianLague


create a public static void method
/youtube/video/dn1XRIaROM4?t=72.580002
create a queue of path requests
/youtube/video/dn1XRIaROM4?t=224.989
create a reference to the path finding class
/youtube/video/dn1XRIaROM4?t=341.979
get the direction on the x axis
/youtube/video/dn1XRIaROM4?t=943.54999
create a vector3 for the current waypoint
/youtube/video/dn1XRIaROM4?t=1224.14
move our transform closer to the current waypoint
/youtube/video/dn1XRIaROM4?t=1303.01