# Overlap events not working anymore after setting up nav agent radius

**URL:** <https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568>\
**Category:** World Creation\
**Tags:** overlap, Navigation, detour-crowds, unreal-engine, navmesh, question, overlap-event\
**Created:** [September 6, 2016, 2:23pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568 "2016-09-06T14:23:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![B.Barz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B.Barz](https://forums.unrealengine.com/u/B.Barz)\
**Post date:** [September 6, 2016, 2:23pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/1 "2016-09-06T14:23:44Z")

</div>

We have this huge project with different sized units, that are controlled by detour crowd controllers that get their movement orders by the player (RTS like gameplay).

We use nav mesh walking for the units and units are constantly getting stuck on edges because the agent radius on the character movement component was alwas -1 with disabled “UpdateNavAgentwithOwnersCollision”. So why not checking this checkbox to use the capsule of the unit as agent size.

It worked - no more stuck units BUT the capsule is suddenly not detected by triggers (OnOverlapBegin and -End) anymore (which makes no sense to me). When I spawn a unit in the base (which also has a collision sphere) it fires overlapBegin and overlapEnd at the same time but is still in the sphere. Why? what am I doing wrong?  
I setup different SupportedAgents for different sized units in the NavSystem settings and only have one collider on each unit.

(When I change some settings and the unit is not connected to the nav mesh, the triggers suddenly work again)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8ef379cd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8ef379cd1](https://forums.unrealengine.com/u/anonymous_user_8ef379cd1)\
**Post date:** [September 6, 2016, 4:51pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/2 "2016-09-06T16:51:16Z")

</div>

Pretty sure I had the same type of problem. Try changing the collision settings on your units and on your walls. Make it so triggers act as something like “Destrucible” and set collision on your units to only overlap with “Destrucible” objects. This property setting should be easily editable and testable…this is how I made my overlapevents work with certain units, while ignoring other overlapevents of different units.

---

<div class="post-metadata">

**Author:** ![B.Barz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B.Barz](https://forums.unrealengine.com/u/B.Barz)\
**Post date:** [September 7, 2016, 7:38am UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/3 "2016-09-07T07:38:19Z")

</div>

Thanks for the response. But that didn’t change anything. It’s almost like the character movement consumes the capsule component of the unit for navigation stuff. It is just not recognized by triggers after the movement component is initialized. But the capsule is still there and the collision settings are correct, too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8ef379cd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8ef379cd1](https://forums.unrealengine.com/u/anonymous_user_8ef379cd1)\
**Post date:** [September 7, 2016, 11:14am UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/4 "2016-09-07T11:14:02Z")

</div>

Dang, well I hope someone here can provide a solution. If not, let us know if you figure it out

---

<div class="post-metadata">

**Author:** ![B.Barz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B.Barz](https://forums.unrealengine.com/u/B.Barz)\
**Post date:** [September 7, 2016, 12:52pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/5 "2016-09-07T12:52:42Z")

</div>

Okay, wow. I think I found something while looking at all the engine code. The nav-walking mode changes the settings of the capsule collider (object response of world static&dynamic) every tick to [Ignore] and after that back to what was before. But when the overlaps for the triggers are checked, it is changed to ignore and thus not recognized.

So your answer really is a workaround (I tried it again and now it works, maybe I didn’t compile correctly the first time… hehe…)

But when I setup a demo project with just a few AI characters and the same nav settings, it just works without the workaround.

So there has to be a cleaner way… somehow…

---

<div class="post-metadata">

**Author:** ![B.Barz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B.Barz](https://forums.unrealengine.com/u/B.Barz)\
**Post date:** [September 7, 2016, 1:20pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/6 "2016-09-07T13:20:53Z")

</div>

I just found something in the udn forum about that:

> _Collision is disabled on purpose on both channels, because both are being  
> used in game to represent collision of  
> world meshes / objects. Yes, it will  
> allow pawns to move through geometry,  
> but that’s the whole point, trade  
> accuracy for speed. If your triggers  
> should react only to objects on pawn  
> channel, which is usually true, adding  
> new collision profile is best  
> solution. Otherwise, you’ll have to  
> leave world dynamic channel enabled,  
> either by modifying engine’s  
> CharacterMovementComponent or  
> overriding SetNavWalkingPhysics() in  
> game specific implementation. We do  
> later in Fortnite, where collision  
> settings depends on custom LoD for  
> pawn, rather than just movement mode._

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8ef379cd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8ef379cd1](https://forums.unrealengine.com/u/anonymous_user_8ef379cd1)\
**Post date:** [September 7, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/7 "2016-09-07T13:42:31Z")

</div>

Yea I didn’t explain it very well, but I’m glad you got what I mean haha. I’ve been using that as a work-around in my project…not sure of another way around it

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [January 2, 2018, 12:24am UTC](https://forums.unrealengine.com/t/overlap-events-not-working-anymore-after-setting-up-nav-agent-radius/369568/8 "2018-01-02T00:24:41Z")

</div>

How did you manage to use detour with differently sized agents?  
For me detour picking only default navmesh ☹
