# HDY enable collision in a particle system? Only emitter collides, not the particles

**URL:** <https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913>\
**Category:** FX\
**Tags:** particle-systems, unreal-engine, Collision, UE4, question, Blueprint\
**Created:** [January 23, 2019, 4:03pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913 "2019-01-23T16:03:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 23, 2019, 4:03pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/1 "2019-01-23T16:03:27Z")

</div>

Hello,

I have a simple 2D game and I’ve created a particle system under the form of a beam. Now that beam is basically a laser. The emitter source is a simple cube for now and so is the target. I have set a ‘delay’ before the ‘enable emitter’ node so that the laser beam appears when I need it to.

My problem is that I cannot for the life of me figure out how to make the actual beam ‘particle’ detect a collision with any of my characters. The emitter itself or the target (both cubes) do detect the collision, but the particle effect, the laser beam itself does not detect any. I have fiddled with the collision presets - tried dynamic, pawn, vehicle etc. but none worked. Is it necessary that the beam itself should be a mesh first of all? that would undoubtedly detect a collision just as any other object.  
Thank you!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 23, 2019, 4:10pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/2 "2019-01-23T16:10:43Z")

</div>

You have to do that on tick. Set a Line Trace from the first cube towards the second, and check if it hits something. Or Multitrace, depending on how you want it to act.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 23, 2019, 4:41pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/3 "2019-01-23T16:41:06Z")

</div>

Ok so I have followed you and the line trace does work. I do have a problem though -

So the line trace detects both characters, but I want the one character that crosses the line to be slowed. Now, how do cast to both of them if that makes sense, or how do I make it so that the one crossing the line is affected, no matter which one out of the 2 characters. If I cast to one of them, only that one will be affected. But I don’t know how to cast to both of them in this situation. Check the screenshot. I basically need a target for both ‘character movement’ and ‘hit actor’.

 ![266298-ue4-linetrace.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/e/04e70a7cc71a64cb339ba013fc8ba434f2e28d22.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 23, 2019, 4:55pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/4 "2019-01-23T16:55:11Z")

</div>

That’s exactly what MultLine Trace is for. It’s virtually the same, but returns all the actors between Start and End.

 ![266299-trace.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/d/78d2621b682f1af95dbca153d395712ee278b403.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 23, 2019, 5:29pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/5 "2019-01-23T17:29:40Z")

</div>

Hey thank you again,

I did as you said but now something weird is happening. The multi + for is ok (added custom event because ForEach hates delays), but there’s something wrong with the character index.

In this situation P1 gets affected, but P2 doesn’t? If I plug the Player Index to ForEach’s Array Index, then when P1 crosses the line both characters are affected and vice-versa, with P2 not going back to normal speeds ever. It’s so confusing, that is.

 ![266300-multi.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/f/12f1fd95344e7e02d5d33fee2810941e48ee9ac4.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 23, 2019, 6:10pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/6 "2019-01-23T18:10:30Z")

</div>

You have to use the Break Hit Result to get actors (Hit Actor pin), and not Get Player Character, because like this you set parameters to only one of them.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 23, 2019, 6:16pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/7 "2019-01-23T18:16:03Z")

</div>

So then how can I possibly make the transition from the ‘Hit Actor’ pin to the ‘Character Movement’ pin, because ‘C Movement’ pin is asking me for a target - which would be the ‘Hit Actor’.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 23, 2019, 6:56pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/8 "2019-01-23T18:56:07Z")

</div>

You can either Cast it to your character class,

 ![266314-trace.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/5/f65da01dcf18b278b02e28a2840022e8fea3eec2.png)

Or use a Blueprint Interface, and set all those functions in the Character BP, and then just call them by an Interface Message.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 23, 2019, 8:33pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/9 "2019-01-23T20:33:38Z")

</div>

I have got 2 different characters. I would have to use two casts - cast on char 1 then cast on char 2, which won’t work. I can either cast it to Player 1 or Player 2.

I have no experience using Blueprint Interfaces. Like, at all.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 23, 2019, 9:00pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/10 "2019-01-23T21:00:21Z")

</div>

You can Cast to both: Cast to the first one, and then use the Cast Failed output to Cast to the second.

As for Interfaces, look up some tutorials; Interfaces are a quire powerful instrument that can save you a lot of time and performance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1341af35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1341af35](https://forums.unrealengine.com/u/anonymous_user_1341af35)\
**Post date:** [January 27, 2019, 5:30pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/11 "2019-01-27T17:30:58Z")

</div>

Thank you and sorry for the late answer, been caught at work for the past days.  
Any way to disable the line trace and activate it whenever I decide to? Or make it ineffective or something of sorts?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 27, 2019, 6:45pm UTC](https://forums.unrealengine.com/t/hdy-enable-collision-in-a-particle-system-only-emitter-collides-not-the-particles/441913/12 "2019-01-27T18:45:16Z")

</div>

If you use it with a timer, you can Pause/Unpause Timer by Handle; if you use tick, you can either disable/enable tick; if tick is used for something else, just place a branch with a bool just before the Line Trase.
