# Exclude dynamic capsules from pathfinding

**URL:** <https://forums.unrealengine.com/t/exclude-dynamic-capsules-from-pathfinding/400871>\
**Category:** World Creation\
**Tags:** pathfinding, unreal-engine, avoidance, question\
**Created:** [July 29, 2017, 10:56pm UTC](https://forums.unrealengine.com/t/exclude-dynamic-capsules-from-pathfinding/400871 "2017-07-29T22:56:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devast3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@devast3d](https://forums.unrealengine.com/u/devast3d)\
**Post date:** [July 29, 2017, 10:56pm UTC](https://forums.unrealengine.com/t/exclude-dynamic-capsules-from-pathfinding/400871/1 "2017-07-29T22:56:49Z")

</div>

Is it possible to exclude certain collision shapes (in my case it’s a capsule on a pawn) from pathfinding? Ideally I want to get something like

**FindPath(from, to, excluded\_shapes)**

This is for dynamic obstacle avoidance (I can’t use engine avoidance for my project).

---

<div class="post-metadata">

**Author:** ![MieszkoZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MieszkoZ](https://forums.unrealengine.com/u/MieszkoZ)\
**Post date:** [July 31, 2017, 10:31am UTC](https://forums.unrealengine.com/t/exclude-dynamic-capsules-from-pathfinding/400871/2 "2017-07-31T10:31:28Z")

</div>

Short answer: No.

Longer answer: the only way is to have dynamic or ‘modifiers only’ navmesh and have the capsules to be avoided annotate navmesh (preferable only when they stop moving).

Cheers,

–mieszko

---

<div class="post-metadata">

**Author:** ![devast3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@devast3d](https://forums.unrealengine.com/u/devast3d)\
**Post date:** [July 31, 2017, 12:37pm UTC](https://forums.unrealengine.com/t/exclude-dynamic-capsules-from-pathfinding/400871/3 "2017-07-31T12:37:28Z")

</div>

That’s what I’m doing at the moment: dynamic navareas around pawn which updated always (not only on stop) since pawns big enough and should always be avoided (even if it moves). I see it’s the only way. Thanks.
