video thumbnail 18:27
A* Pathfinding (E08: path smoothing 1/2)

2017-01-31

[public] 51.3K views, 913 likes, 5.00 dislikes audio only

In this episode we do some set-up work to allow for path smoothing.

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

Video explaining the GetSide() method will be available soon.

If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon

Or a once-off donation through PayPal:

http://bit.ly/SupportGamedevTutorials


calculate the gradient perpendicular
/youtube/video/NjQjl-ZBXoY?t=125.91
set the gradient to some high value
/youtube/video/NjQjl-ZBXoY?t=164.82001
calculate the gradient of our actual line
/youtube/video/NjQjl-ZBXoY?t=210.17999
calculate our y-intercept
/youtube/video/NjQjl-ZBXoY?t=258.60001
creating this turn boundary
/youtube/video/NjQjl-ZBXoY?t=457.70999
loop through all of our look points
/youtube/video/NjQjl-ZBXoY?t=672.65997
set the turn boundary point simply equal to the current point
/youtube/video/NjQjl-ZBXoY?t=807.29999
integrate a vector3 line center
/youtube/video/NjQjl-ZBXoY?t=925.25
start by making the speed variable
/youtube/video/NjQjl-ZBXoY?t=988.52002
Support these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague
Procedural Terrain Generation by Sebastian Lague
/youtube/video/wbpMiKiSKm8
Delegates and Events by Sebastian Lague
/youtube/video/G5R4C8BLEOc