# Move To in Behaviour Tree doesn't avoid obstacles

**URL:** <https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 26, 2015, 5:14pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267 "2015-02-26T17:14:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [February 26, 2015, 5:14pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/1 "2015-02-26T17:14:51Z")

</div>

Hello, since i upgraded to 4.7 (release from Git) that the Move To node in the Behavior Tree start working a little bit like Move Directly To. I say this because when i simulate and start dragging the player character around, the AI follows him but when i put the player behind an obstacle he doesn’t avoid it and continues walking in place and somethings never reaches the player.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [March 7, 2015, 1:08am UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/2 "2015-03-07T01:08:39Z")

</div>

Hi Xlar8or,

I am attempting to reproduce this in the 4.7.2 launcher build, but my AI are moving as they were in 4.6.1 as far as I can tell. Can you show me how your NavMesh properties are set? Also, if you could give me some screenshots of your Behavior Tree and the blueprints associated with your AI, I can use those to build a test case. Any additional information about your project may help.

Cheers!

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 7, 2015, 9:07pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/3 "2015-03-07T21:07:08Z")

</div>

Thank you for the reply 🙂 I was able to replicate this using using a fresh third person template project using 4.7.2. I created a simple character that has a custom AI Controller that just executes the Behavior Tree. Here is the Behavior Tree i used:

![32943-ai1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/0/3b08c419f04e213d80b577d188a698bf1fd2bbb8.png)

The service used is this:

 ![32942-ai2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/a/b0a3009e7f24e72bbc1d644ef378bd0e137bc53b.png)

Here is the video with the issue:

[link text][3]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [March 10, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/4 "2015-03-10T15:09:51Z")

</div>

Thank you for that additional information. I was able to discuss this with the Fortnite developers and find the root cause. It is now fixed internally and we are working to push the fix out ASAP. Thank you again for your report! Let us know if you encounter any other unexpected behavior.

Cheers!

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 10, 2015, 4:12pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/5 "2015-03-10T16:12:32Z")

</div>

Thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 18, 2015, 11:03am UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/6 "2015-03-18T11:03:28Z")

</div>

Hello 🙂 I saw the Move To fix in 4.7.3 hotfix and i assumed it’s the fix for this issue i reported. I tried it out but the issue still persists. Just to confirm that 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [March 18, 2015, 3:06pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/7 "2015-03-18T15:06:59Z")

</div>

I double checked the bug reports and can see that was unfortunately a different fix. I can also see that this one is now marked as fixed for 4.7.4/4.8, so if we do have another hotfix it is marked to be integrated into that or if not then 4.8 should include it.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 18, 2015, 3:52pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/8 "2015-03-18T15:52:39Z")

</div>

Is it possible to tell what is the commit has that fix, so i can try to cherrypick it? Waiting for 4.8 is at least a month from now :S

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [March 18, 2015, 6:04pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/9 "2015-03-18T18:04:03Z")

</div>

Currently the fix is “Shelved” to be tested and worked on more before committing. I have emailed the developer in charge of that particular bug report to let him know that the fix needs to be committed asap. It does seem that this fix is progressing very quickly, so I should hear back from him soon. I will keep this post open until I have word from him.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 18, 2015, 6:31pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/10 "2015-03-18T18:31:07Z")

</div>

Thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [March 20, 2015, 2:33pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/11 "2015-03-20T14:33:01Z")

</div>

Sorry for the wait, I located the github commit for the 4.7 branch:

[https://github.com/EpicGames/UnrealEngine/commit/40629f0e3f5c6ba1486a7ca44c0b59fabce978a4](https://github.com/EpicGames/UnrealEngine/commit/40629f0e3f5c6ba1486a7ca44c0b59fabce978a4)

I hope that this helps! Please let me know if it does not and I will inform the lead AI developer.

Cheers!

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [March 21, 2015, 11:11pm UTC](https://forums.unrealengine.com/t/move-to-in-behaviour-tree-doesnt-avoid-obstacles/308267/12 "2015-03-21T23:11:02Z")

</div>

That’s it ! Thanks 🙂
