<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ue4 pathfinding Archives - Couch Learn</title>
	<atom:link href="https://couchlearn.com/tag/ue4-pathfinding/feed/" rel="self" type="application/rss+xml" />
	<link>https://couchlearn.com/tag/ue4-pathfinding/</link>
	<description>Detailed Game Programming Tutorials</description>
	<lastBuildDate>Sun, 10 Jan 2021 23:52:13 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://couchlearn.com/wp-content/uploads/2020/05/cropped-logolarge-32x32.png</url>
	<title>ue4 pathfinding Archives - Couch Learn</title>
	<link>https://couchlearn.com/tag/ue4-pathfinding/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Easy Dynamic Pathfinding in Unreal Engine 4</title>
		<link>https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/</link>
					<comments>https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/#comments</comments>
		
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Mon, 21 Oct 2019 23:40:31 +0000</pubDate>
				<category><![CDATA[AI]]></category>
		<category><![CDATA[Easy Difficulty]]></category>
		<category><![CDATA[Unreal Engine]]></category>
		<category><![CDATA[easy ue4 dynamic pathfinding]]></category>
		<category><![CDATA[ue4 dynamic navmesh]]></category>
		<category><![CDATA[ue4 dynamic pathfinding]]></category>
		<category><![CDATA[ue4 easy dynamic navmesh]]></category>
		<category><![CDATA[ue4 navmesh]]></category>
		<category><![CDATA[ue4 pathfinding]]></category>
		<guid isPermaLink="false">https://couchlearn.com/?p=881</guid>

					<description><![CDATA[<p>Unreal Engine 4&#8217;s pathfinding and navigation system gives all users a robust and easy to use system for adding AI controlled characters into their games. <a class="mh-excerpt-more" href="https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/" title="Easy Dynamic Pathfinding in Unreal Engine 4">[...]</a></p>
<p>The post <a href="https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/">Easy Dynamic Pathfinding in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Unreal Engine 4&#8217;s pathfinding and navigation system gives all users a robust and easy to use system for adding AI controlled characters into their games. With the default settings, navigation is static preventing changes at runtime.<br><br>Dynamically generating the nav mesh (Navigation Mesh) and adjusting it during runtime has very little documentation which is why this guide has been created.<br><br>In this guide we will be working through <strong>how to enable runtime navmesh generation</strong> and <strong>how to affect the navmesh with navigation modifiers.</strong></p>



<h3 class="wp-block-heading">Switching to Runtime Generation</h3>



<p>Firstly, to enable this feature open up your Project Settings.</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="675" height="444" src="https://couchlearn.com/wp-content/uploads/2019/10/image-39.png" alt="Project settings option" class="wp-image-888" srcset="https://couchlearn.com/wp-content/uploads/2019/10/image-39.png 675w, https://couchlearn.com/wp-content/uploads/2019/10/image-39-300x197.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<p>From here find and click the Navigation Mesh tab under the Engine category.</p>



<figure class="wp-block-image"><img decoding="async" width="345" height="515" src="https://couchlearn.com/wp-content/uploads/2019/10/image-40.png" alt="Navigation Mesh settings" class="wp-image-889" srcset="https://couchlearn.com/wp-content/uploads/2019/10/image-40.png 345w, https://couchlearn.com/wp-content/uploads/2019/10/image-40-201x300.png 201w" sizes="(max-width: 345px) 100vw, 345px" /></figure>



<p>In the Navigation Mesh settings set the Runtime Generation setting to Dynamic.</p>



<figure class="wp-block-image"><img decoding="async" width="681" height="143" src="https://couchlearn.com/wp-content/uploads/2019/10/image-42.png" alt="Setting the runtime generation to dynamic" class="wp-image-891" srcset="https://couchlearn.com/wp-content/uploads/2019/10/image-42.png 681w, https://couchlearn.com/wp-content/uploads/2019/10/image-42-300x63.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></figure>



<h3 class="wp-block-heading">Adding Navigation Modifiers</h3>



<p>Any actor component that has collision can be setup to cut holes inside the navigation mesh.</p>



<figure class="wp-block-image"><img decoding="async" width="1024" height="443" src="https://couchlearn.com/wp-content/uploads/2019/10/image-45-1024x443.png" alt="Obstacle now changing the nav mesh" class="wp-image-894" srcset="https://couchlearn.com/wp-content/uploads/2019/10/image-45-1024x443.png 1024w, https://couchlearn.com/wp-content/uploads/2019/10/image-45-300x130.png 300w, https://couchlearn.com/wp-content/uploads/2019/10/image-45-768x332.png 768w, https://couchlearn.com/wp-content/uploads/2019/10/image-45.png 1130w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>To enable this feature, I created a new actor named NavigationBlocker. <br><br>This actor stops AI controlled actors from moving in the red area that the collision occupies. <br><br>Furthermore, the NavigationBlocker moves around the level, regenerating the navmesh to reflect the changed environment. <br><br>To keep it simple, this actor only has a Box Collision.</p>



<figure class="wp-block-image"><img decoding="async" width="290" height="156" src="https://couchlearn.com/wp-content/uploads/2019/10/image-44.png" alt="NavigationBlocker actor" class="wp-image-893"/></figure>



<p>Click the box collision component from the components list (shown above) and find the navigation category in the details panel on the left.<br><br>Tick the Dynamic Obstacle checkbox and set the area class to obstacle.</p>



<figure class="wp-block-image"><img decoding="async" width="443" height="106" src="https://couchlearn.com/wp-content/uploads/2019/10/image-46.png" alt="Navigation settings" class="wp-image-895" srcset="https://couchlearn.com/wp-content/uploads/2019/10/image-46.png 443w, https://couchlearn.com/wp-content/uploads/2019/10/image-46-300x72.png 300w" sizes="(max-width: 443px) 100vw, 443px" /></figure>



<h4 class="wp-block-heading">Area Class</h4>



<p>The area class determines how AI controlled actors will react to the modifier.</p>



<ul class="wp-block-list"><li><strong>None will not affect the navigation.</strong><br></li><li><strong>Default will act like a normal area of navmesh.</strong><br></li><li><strong>LowHeight blocks all AI from navigating through it due to the height restriction.<br></strong></li><li><strong>Null blocks all navigation inside it.<br></strong></li><li><strong>Obstacle tells the AI that this area can be navigated through but only if there are no other possible ways to move to the target.</strong></li></ul>



<h3 class="wp-block-heading">Example</h3>



<p>The AI actor now dynamically adjusts to walk around the box.<br><br>To download the project files for this tutorial click below:</p>



<script src="https://gumroad.com/js/gumroad-embed.js"></script>
<div class="gumroad-product-embed" data-gumroad-product-id="BsWqN"><a href="https://gumroad.com/l/BsWqN">Loading&#8230;</a></div>



<h3 class="wp-block-heading">Conclusion</h3>



<p>With this setup your AI controlled actors will now react to the changing environments.<br><br>This system is essential for creating city building or strategy games.<br><br>A few examples of games that would use an equivalent system would be <a href="https://www.ageofempires.com/">Age of Empires</a>, <a href="https://en.wikipedia.org/wiki/StarCraft">Starcraft</a> and <a href="https://www.ea.com/en-gb/games/command-and-conquer">Command and Conquer.</a></p>
<p>The post <a href="https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/">Easy Dynamic Pathfinding in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: couchlearn.com @ 2026-04-11 14:39:12 by W3 Total Cache
-->