Godot Navigation | Subtracting Collision Shapes from Navigation Polygons
Game Development Center
In this Godot Tutorial, I will teach you how you can make pathing through the use of the Godot Navigation2D node smoother by subtracting any collision shape from the navigationpolygon, thereby avoiding the collision objects altogether.
00:15 Introduction 03:06 Subtracting StaticBody Collision Shapes 08:41 Subtracting TileMap Collision Shapes 19:46 Limitations of this Solution 22:43 A Bright Future in Godot 4.0
The solution in this tutorial is not perfect as you can't remove outlines that share vertice locations. For a perfect solution, we will have to wait for the NavigationServer that will be introduced in Godot 4.0.
If you want to learn more about the tilemap functions used or learn about changing tiles at runtime/making tile interactive: https://youtu.be/W4c0MGl1eyE
Navigation2D tutorial from GDQuest: https://www.youtube.com/watch?v=0fPOt0Jw52s
Follow me on Twitch and chat, watch and learn Godot and GameDev with a big group of Godot developers: https://twitch.tv/stefan_gamedev
I stream every Tuesday and Thursday from 19:00 to 22:00 (GMT+1/2 (winter/summertime), that's; 12:00 to 15:00 (PST), or 15:00 to 18:00 (EST).
If you like to show some support, I currently do not have a Patreon page as many have asked, instead you can drop a sub on twitch: https://www.twitch.tv/subs/stefan_gamedev or if you are more into sharing some support without public trails you can hit me with a donation on my donation page: https://streamelements.com/stefan_gamedev/tip
Want to learn more? Check these resources (referral) to up your GameDev Game :) Game Programming Patterns | For all coding languages | https://amzn.to/35IoDsH
Temporarily deals (referral)! Valid till 27 May on HumbleBumble, a HUGE discount on video game music from a single composer. Listen to previews on Soundcloud, pick your pack, from as low as $1,50 https://www.humblebundle.com/software/big-music-bundle-for-games-films-and-content-creators-software?partner=stefangamedev
Check out the new discord! Ask questions, share ideas, find other devs :) https://discord.gg/DwcFXyS
Follow me on Twitter to get some sneak peeks for upcoming content, and the occasion poll on what we should be doing next on here and stream: https://twitter.com/GamedevStefan
GDC, Game Development Center, was created to provide in-depth tutorials on game design and game development with Godot. We aim for multi-part tutorials, allowing us to dive deeper into Godot's features. You can request tutorials on additional features within a given topic. No promises, but we'll do our best to make it happen :) ... https://www.youtube.com/watch?v=uzqRjEoBcTI
125733561 Bytes