# Is there a way to detect if a Niagara particle is colliding with something when it spawns?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079>\
**Category:** FX\
**Tags:** unreal-engine, UE5-0, question, UE4-27\
**Created:** [October 30, 2022, 7:28am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079 "2022-10-30T07:28:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saturnian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saturnian](https://forums.unrealengine.com/u/Saturnian)\
**Post date:** [October 30, 2022, 7:28am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079/1 "2022-10-30T07:28:57Z")

</div>

Hi all!  
My Niagara system is attached to the player, and whenever the player goes next to a wall particles start spawning inside the wall, even though I have a collision module on the emitter which is otherwise working fine. I have blocking volumes inside my walls as well, so the particles are technically in collision when they spawn. How can I detect that and not spawn them inside walls (or kill them immediately on spawn)?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 30, 2022, 8:01am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079/2 "2022-10-30T08:01:43Z")

</div>

Is this any use?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/d/afdeb55f457d2f5188a1be5879e5fbd000465afa.jpeg "UE4 - Niagara Collision") ](https://www.youtube.com/watch?v=QncETSkkeD8)

---

<div class="post-metadata">

**Author:** ![Saturnian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saturnian](https://forums.unrealengine.com/u/Saturnian)\
**Post date:** [October 30, 2022, 8:26am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079/3 "2022-10-30T08:26:45Z")

</div>

Thanks, but no, it’s not mentioned in that video.  
I’ve tried both GPU and CPU for the Sim target, same result. If I could detect if particles overlap something when they spawn that would solve it, but I couldn’t find anything like that.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 30, 2022, 8:47am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079/4 "2022-10-30T08:47:24Z")

</div>

It’s the same problem as overlap with actors. Spawning with an overlap doesn’t count.

With actors you have to code them with ‘is overlapping…’ on begin play.

I’m guessing you have to adapt the collision module ( copy if first ), to make this happen.

---

<div class="post-metadata">

**Author:** ![Lukaris01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lukaris01](https://forums.unrealengine.com/u/Lukaris01)\
**Post date:** [November 30, 2022, 11:48am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-if-a-niagara-particle-is-colliding-with-something-when-it-spawns/680079/5 "2022-11-30T11:48:07Z")

</div>

Hi Staurnian,  
maybe this 2 help ?  
Event Collision → in Niagara  
(there is a “kill” option when collision is triggered… if I am not mistaken)  
and  
Collision Query → connects to Scrap Module

check out this 2 videso

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/a/10a34c7c4bf05530fb9bc2e5e9d6ad05bb38dba8.jpeg "Collision Query | UE5 Niagara #ScratchPad Module #9") ](https://www.youtube.com/watch?v=kxFgm8B7Tm4)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/6/656859baec2fb6fff7b0b5717054af2bd5cf4573.jpeg "Event Handler in UE5 Niagara | Location Event | Death Event | Collision Event | Download Project") ](https://www.youtube.com/watch?v=IhhlrK2vfDM)
