# NPC Spinning until User enters Trigger

**URL:** <https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [October 25, 2024, 4:48am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993 "2024-10-25T04:48:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 4:48am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/1 "2024-10-25T04:48:57Z")

</div>

**Original Discord Post by dylan\_34374 | 2024-10-25 04:48:57**

Hey Guys, im facing a rather small issue, not game breaking, but still needs to be fixed i have my npc move to another point in my app calling the MoveTo() from the actionhandler script, the npc starts walking and makes their way to the Point perfectly fine, HOWEVER once it reached the point it just spins around in circles. i was hoping to get some help to fix this? i noticed that only when me/The user enters the trigger near the NPC then the npc stops moving.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 5:05am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/2 "2024-10-25T05:05:53Z")

</div>

**Reply by dylan\_34374 | 2024-10-25 05:05:53**

what I’d like is that when the NPC reaches its Destination Position then it should just stop and face the Player Camera.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 7:24am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/3 "2024-10-25T07:24:32Z")

</div>

**Reply by ayamidj\_99952 | 2024-10-25 07:24:32**

How did make the NPC move to the trigger? Could you share your narrative design flow and the unity setup of the section? I’m facing a problem moving the NPC from one point to another it keeps moving in the same place!

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 7:24am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/4 "2024-10-25T07:24:57Z")

</div>

**Reply by ayamidj\_99952 | 2024-10-25 07:24:57**

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 8:06am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/5 "2024-10-25T08:06:35Z")

</div>

**Replying to dylan\_34374’s Message**

> **Reply by dylan\_34374 | 2024-10-25 04:48:57**  
> Hey Guys, im facing a rather small issue, not game breaking, but still needs to be fixed i have my npc move to another point in my app calling the MoveTo() from the actionhandler script, the npc starts walking and makes their way to the Point perfectly fine, HOWEVER once it reached the point it just spins around in circles. i was hoping to get some help to fix this? i noticed that only when me/The user enters the trigger near the NPC then the npc stops moving.

**Reply by k3kalinix | 2024-10-25 08:06:35**

Hello \<@1180111715208278088\>,

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 8:06am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/6 "2024-10-25T08:06:41Z")

</div>

**Reply by k3kalinix | 2024-10-25 08:06:41**

It is related to NavMesh Agent.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 8:07am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/7 "2024-10-25T08:07:16Z")

</div>

**Reply by k3kalinix | 2024-10-25 08:07:16**

Increase the stopping distance and disable Auto Braking.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 8:07am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/8 "2024-10-25T08:07:34Z")

</div>

**Replying to k3kalinix’s Message**

> **Reply by k3kalinix | 2024-10-25 08:07:16**  
> Increase the stopping distance and disable Auto Braking.

**Reply by dylan\_34374 | 2024-10-25 08:07:34**

Hey , Will try now.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 25, 2024, 8:08am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/9 "2024-10-25T08:08:34Z")

</div>

**Replying to ayamidj\_99952’s Message**

> **Reply by ayamidj\_99952 | 2024-10-25 07:24:57**

**Reply by dylan\_34374 | 2024-10-25 08:08:34**

please read that forum, i explained how i fixed it. if you need more help please text on dm, ill be glad to help you out

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:27am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/10 "2024-10-28T09:27:31Z")

</div>

**Reply by dylan\_34374 | 2024-10-28 09:27:31**

this is solved! thank you \<@1023671043287699568\> worked perfectly

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:27am UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/11 "2024-10-28T09:27:40Z")

</div>

**Reply by k3kalinix | 2024-10-28 09:27:40**

Perfect!

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 25, 2024, 12:14pm UTC](https://forum.convai.com/t/npc-spinning-until-user-enters-trigger/1993/12 "2024-11-25T12:14:08Z")

</div>

This conversation happened on the Convai Discord Server, so this post will be closed.
