<?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>unreal engine 4 ai Archives - Couch Learn</title>
	<atom:link href="https://couchlearn.com/tag/unreal-engine-4-ai/feed/" rel="self" type="application/rss+xml" />
	<link>https://couchlearn.com/tag/unreal-engine-4-ai/</link>
	<description>Detailed Game Programming Tutorials</description>
	<lastBuildDate>Sun, 10 Jan 2021 23:51:57 +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>unreal engine 4 ai Archives - Couch Learn</title>
	<link>https://couchlearn.com/tag/unreal-engine-4-ai/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Smoothly Rotate AI Characters in Unreal Engine 4</title>
		<link>https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/</link>
					<comments>https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/#comments</comments>
		
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Thu, 17 Dec 2020 16:12:59 +0000</pubDate>
				<category><![CDATA[AI]]></category>
		<category><![CDATA[Medium Difficulty]]></category>
		<category><![CDATA[Unreal Engine]]></category>
		<category><![CDATA[ai smooth rotation]]></category>
		<category><![CDATA[couch learn]]></category>
		<category><![CDATA[How to Smoothly Rotate AI Characters in Unreal Engine 4]]></category>
		<category><![CDATA[smooth rotation]]></category>
		<category><![CDATA[ue4]]></category>
		<category><![CDATA[ue4 AI]]></category>
		<category><![CDATA[ue4 ai smooth rotation]]></category>
		<category><![CDATA[unreal ai smooth]]></category>
		<category><![CDATA[unreal engine 4]]></category>
		<category><![CDATA[unreal engine 4 ai]]></category>
		<category><![CDATA[unreal engine AI]]></category>
		<category><![CDATA[unreal engine smooth rotation]]></category>
		<guid isPermaLink="false">https://couchlearn.com/?p=1310</guid>

					<description><![CDATA[<p>The default behaviour for Unreal Engine 4 AI characters is to instantly snap towards the direction they are facing. AI smooth rotation in Unreal Engine <a class="mh-excerpt-more" href="https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/" title="How to Smoothly Rotate AI Characters in Unreal Engine 4">[...]</a></p>
<p>The post <a href="https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/">How to Smoothly Rotate AI Characters in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The default behaviour for Unreal Engine 4 AI characters is to instantly snap towards the direction they are facing. <br><br>AI smooth rotation in Unreal Engine 4 is simple and requires very little change to your existing AI characters.<br><br>In this guide we will be making your AI character smoothly turn when moving between locations.<br><br><em><strong>If you don&#8217;t have a simple AI character <a href="https://couchlearn.com/easy-ai-movement-in-unreal-engine-4/">read our guide here.</a></strong></em></p>



<h2 class="wp-block-heading">Smoothing the Turning</h2>



<p>Firstly, click the top section of the character in the top left side of the editor window.<br><br><strong>In our case this is AITestCharacter(self)</strong>.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="294" height="173" src="https://couchlearn.com/wp-content/uploads/2020/11/image-9.png" alt="Selecting the main actor" class="wp-image-1328"/></figure>



<p>This will now show the character and actor information in the details section on the right.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="777" height="651" src="https://couchlearn.com/wp-content/uploads/2020/11/image-10.png" alt="Showing the actor info" class="wp-image-1329" srcset="https://couchlearn.com/wp-content/uploads/2020/11/image-10.png 777w, https://couchlearn.com/wp-content/uploads/2020/11/image-10-300x251.png 300w, https://couchlearn.com/wp-content/uploads/2020/11/image-10-768x643.png 768w" sizes="(max-width: 777px) 100vw, 777px" /></figure>



<p>In the Pawn section, <strong>Untick </strong>the &#8220;Use Controller Rotation Yaw&#8221;</p>



<figure class="wp-block-image size-large"><img decoding="async" width="470" height="222" src="https://couchlearn.com/wp-content/uploads/2020/11/image-11.png" alt="Disabling the yaw controller rotation" class="wp-image-1330" srcset="https://couchlearn.com/wp-content/uploads/2020/11/image-11.png 470w, https://couchlearn.com/wp-content/uploads/2020/11/image-11-300x142.png 300w" sizes="(max-width: 470px) 100vw, 470px" /><figcaption>This prevents the AI from snapping towards the controller direction.</figcaption></figure>



<p>Next, click the &#8220;CharacterMovement (Inherited)&#8221; section to show the character movement settings on the right.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="299" height="197" src="https://couchlearn.com/wp-content/uploads/2020/11/image-8.png" alt="Selecting the character movement component" class="wp-image-1321"/></figure>



<p>In the top right search box type &#8220;rotation&#8221; to show the related options.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="465" height="497" src="https://couchlearn.com/wp-content/uploads/2020/11/image-13.png" alt="Searching in the details panel for Rotation settings" class="wp-image-1333" srcset="https://couchlearn.com/wp-content/uploads/2020/11/image-13.png 465w, https://couchlearn.com/wp-content/uploads/2020/11/image-13-281x300.png 281w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<p>In the Character Movement Rotation Settings tab, change the Z Rotation Rate value to 180 and <strong>tick </strong>the &#8220;Orient Rotation to Movement&#8221; box.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="465" height="189" src="https://couchlearn.com/wp-content/uploads/2020/11/image-14.png" alt="Setting the Z value to 180 and ticking orient rotation to movement" class="wp-image-1334" srcset="https://couchlearn.com/wp-content/uploads/2020/11/image-14.png 465w, https://couchlearn.com/wp-content/uploads/2020/11/image-14-300x122.png 300w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<h2 class="wp-block-heading">Demonstration</h2>



<p>In this demo we show AI smooth rotation in Unreal Engine 4 that use the Troll mesh and animations from the<a href="https://www.unrealengine.com/marketplace/en-US/item/1fb552504c4f4700bfddb127bf1d1189/"> Troll Pack PBR asset pack found on the Unreal Marketplace by InfinityPBR.</a></p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<h3 class="wp-block-heading">Instant AI Rotation</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="800" height="450" src="https://couchlearn.com/wp-content/uploads/2020/12/instantairotation.gif" alt="Instant rotation of AI" class="wp-image-1345"/></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<h3 class="wp-block-heading">Smooth AI Rotation</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="800" height="450" src="https://couchlearn.com/wp-content/uploads/2020/12/smoothairotation.gif" alt="Smooth rotation of AI" class="wp-image-1344"/></figure>
</div>
</div>



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



<p>Your AI characters now rotation smoothly and can be customised based on the agility of your game characters!<br><br><em>Let us know in the comments or contact us directly if you have any problems or want to request new Unreal Engine 4 topics.</em><br><br><strong>Further Reading:</strong><br><br>To enable your AI characters to roam large open worlds, <a href="https://couchlearn.com/open-world-navigation-in-unreal-engine-4/">check out our guide on enabling dynamic nav mesh generation.</a><br><br>To read more about AI in Unreal Engine, <a href="https://docs.unrealengine.com/en-US/InteractiveExperiences/ArtificialIntelligence/BehaviorTrees/BehaviorTreesOverview/index.html">click here to read the official documentation on Behaviour Trees.</a><br></p>
<p>The post <a href="https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/">How to Smoothly Rotate AI Characters in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://couchlearn.com/how-to-smoothly-rotate-ai-characters-in-unreal-engine-4/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Open World Navigation in Unreal Engine 4</title>
		<link>https://couchlearn.com/open-world-navigation-in-unreal-engine-4/</link>
					<comments>https://couchlearn.com/open-world-navigation-in-unreal-engine-4/#comments</comments>
		
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 11 Dec 2019 20:32:10 +0000</pubDate>
				<category><![CDATA[AI]]></category>
		<category><![CDATA[Medium Difficulty]]></category>
		<category><![CDATA[Unreal Engine]]></category>
		<category><![CDATA[large world pathfinding]]></category>
		<category><![CDATA[open world pathfinding]]></category>
		<category><![CDATA[terrain pathfinding]]></category>
		<category><![CDATA[ue4]]></category>
		<category><![CDATA[ue4 AI]]></category>
		<category><![CDATA[ue4 ai movement]]></category>
		<category><![CDATA[ue4 dynamic pathfinding]]></category>
		<category><![CDATA[ue4 open world]]></category>
		<category><![CDATA[ue4 open world pathfinding]]></category>
		<category><![CDATA[unreal engine 4]]></category>
		<category><![CDATA[unreal engine 4 ai]]></category>
		<category><![CDATA[unreal engine AI]]></category>
		<guid isPermaLink="false">https://couchlearn.com/?p=939</guid>

					<description><![CDATA[<p>In this guide we will enable open world navigation in Unreal Engine 4 using the Navigation Invoker system. One annoyance that most developers forget to <a class="mh-excerpt-more" href="https://couchlearn.com/open-world-navigation-in-unreal-engine-4/" title="Open World Navigation in Unreal Engine 4">[...]</a></p>
<p>The post <a href="https://couchlearn.com/open-world-navigation-in-unreal-engine-4/">Open World Navigation in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p> In this guide we will enable open world navigation in Unreal Engine 4 using the Navigation Invoker system.<br><br>One annoyance that most developers forget to think about when creating open world or procedural levels is the navigation system taking hours to generate the nav mesh.<br><br>Using navigation invokers, we can generate the nav mesh during runtime without a long wait in the editor.</p>



<h3 class="wp-block-heading">Before we Start</h3>



<p>To enable these features, dynamic pathfinding must be enabled to allow the navigation mesh to generate during runtime.<br><br><a href="https://couchlearn.com/easy-dynamic-pathfinding-in-unreal-engine-4/">To learn how to enable dynamic generation during runtime click here for our guide.</a></p>



<p class="has-text-align-center"><strong>Only the areas of the level that possessed pawns are near will be generated. </strong></p>



<h3 class="wp-block-heading">Enabling Generation around Nav Invokers</h3>



<p>To enable this setting we must firstly go to the project settings.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="560" height="477" src="https://couchlearn.com/wp-content/uploads/2019/11/image.png" alt="Project settings" class="wp-image-944" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image.png 560w, https://couchlearn.com/wp-content/uploads/2019/11/image-300x256.png 300w" sizes="(max-width: 560px) 100vw, 560px" /></figure>



<p>Once the project settings are open, click on the<strong> Navigation System</strong> tab.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="278" height="402" src="https://couchlearn.com/wp-content/uploads/2019/11/image-1.png" alt="Navigation system" class="wp-image-945" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image-1.png 278w, https://couchlearn.com/wp-content/uploads/2019/11/image-1-207x300.png 207w" sizes="(max-width: 278px) 100vw, 278px" /></figure>



<p>Tick the checkbox named: <strong>Generate Navigation Only Around Navigation Invoker. </strong><br><br>This tells the engine to only generate around actors that have the navigation invoker component.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="743" height="472" src="https://couchlearn.com/wp-content/uploads/2019/11/image-2.png" alt="Enable nav invoker generation" class="wp-image-946" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image-2.png 743w, https://couchlearn.com/wp-content/uploads/2019/11/image-2-300x191.png 300w" sizes="(max-width: 743px) 100vw, 743px" /></figure>



<h3 class="wp-block-heading">Nav Invoker Component</h3>



<p>To enable navigation generation on an actor, we first need to add the Navigation Invoker Component.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="282" height="140" src="https://couchlearn.com/wp-content/uploads/2019/11/image-3.png" alt="Nav invoker component" class="wp-image-948"/></figure>



<p>To add this to your actor, click the Add Component button in the top left of your blueprint editor and search for Navigation Invoker.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="361" height="145" src="https://couchlearn.com/wp-content/uploads/2019/11/image-4.png" alt="Adding the nav invoker" class="wp-image-949" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image-4.png 361w, https://couchlearn.com/wp-content/uploads/2019/11/image-4-300x120.png 300w" sizes="(max-width: 361px) 100vw, 361px" /></figure>



<p>Once this component is added, setup the radius that the navigation mesh will be generated and removed.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="287" height="169" src="https://couchlearn.com/wp-content/uploads/2019/11/image-5.png" alt="Adding the nav invoker" class="wp-image-950"/></figure>



<p>From my testing, the default values work well for open world landscape levels.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="544" height="334" src="https://couchlearn.com/wp-content/uploads/2019/11/image-6.png" alt="Default settings for nav invoker" class="wp-image-951" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image-6.png 544w, https://couchlearn.com/wp-content/uploads/2019/11/image-6-300x184.png 300w" sizes="(max-width: 544px) 100vw, 544px" /></figure>



<p>When creating a procedurally generated indoor level, I recommend slightly higher values.<br><br>This prevents the actor from being trapped in their current room or area.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="533" height="88" src="https://couchlearn.com/wp-content/uploads/2019/11/image-7.png" alt="Settings for procedural halls" class="wp-image-952" srcset="https://couchlearn.com/wp-content/uploads/2019/11/image-7.png 533w, https://couchlearn.com/wp-content/uploads/2019/11/image-7-300x50.png 300w" sizes="(max-width: 533px) 100vw, 533px" /></figure>



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



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



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



<p>That is all for enabling open world navigation in Unreal Engine 4!<br><br>Characters and pawns can now traverse large open or procedurally generated levels.<br><br>For further reading into the navigation functions in Unreal Engine, <a href="https://docs.unrealengine.com/en-US/BlueprintAPI/AI/Navigation/index.html">click here for the official documentation.</a></p>
<p>The post <a href="https://couchlearn.com/open-world-navigation-in-unreal-engine-4/">Open World Navigation in Unreal Engine 4</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://couchlearn.com/open-world-navigation-in-unreal-engine-4/feed/</wfw:commentRss>
			<slash:comments>9</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-15 17:12:14 by W3 Total Cache
-->