# Problem with collisions on mesh particles when spawning from Destructible Mesh

**URL:** <https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305>\
**Category:** World Creation\
**Tags:** mesh-particles, Destruction, unreal-engine, Destructible-Mesh, question\
**Created:** [July 3, 2014, 9:22am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305 "2014-07-03T09:22:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SatanicBlood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SatanicBlood](https://forums.unrealengine.com/u/SatanicBlood)\
**Post date:** [July 3, 2014, 9:22am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/1 "2014-07-03T09:22:29Z")

</div>

I made destructible mesh of a wall. On destruction I added a particle system of some smoke and stones. Stone are particle meshes with collisions to add more details. When I spawn particle effects on level collisions work. But when they are spawned from destructible meshes collision just doesn’t occur. Is this a bug?

GPU particles work but U cant use meshes on gpu’s simplified collisions. I ve tried on my build and on content example. Happens every time. PC.

---

<div class="post-metadata">

**Author:** ![SatanicBlood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SatanicBlood](https://forums.unrealengine.com/u/SatanicBlood)\
**Post date:** [July 3, 2014, 10:45am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/2 "2014-07-03T10:45:07Z")

</div>

void UParticleModuleCollision::Update(FParticleEmitterInstance\* Owner, int32 Offset, float DeltaTime)

```
AActor* Actor = Owner->Component->GetOwner();

	if (!Actor && Owner->GetWorld()->IsGameWorld() )

	{

		return;

	}

```

Commenting this return fix problem but we are sure that it was there for a reason…

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 3, 2014, 6:01pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/3 "2014-07-03T18:01:59Z")

</div>

Hi SatanicBlood,

I just reproduced your issue and I am going to submit this to developers to look into. As a work around, change your Destructible Mesh’s collision from Destructible to BlockAll under Details panel. change may not be apparent in viewport but it should work when level is played.

Let me know it this works for you.

Thanks, TJ

---

<div class="post-metadata">

**Author:** ![\_Epic\_Ori\_Cohen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Epic\_Ori\_Cohen](https://forums.unrealengine.com/u/_Epic_Ori_Cohen)\
**Post date:** [September 11, 2014, 9:13pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/4 "2014-09-11T21:13:58Z")

</div>

In 4.4 particle system will only collide with objects with ObjectType WorldStatic.

I submitted a fix for this so that you can pick whatever types you want. You should be able to change destructible ObjectType to WorldStatic to get collision to work. You can also grab my change and then you should be able to properly add object types you care about:

[https://github.com/EpicGames/UnrealEngine/commit/e0872056b1f8404342e249c85334c586215b0df0](https://github.com/EpicGames/UnrealEngine/commit/e0872056b1f8404342e249c85334c586215b0df0)

This should be fixed in 4.5

---

<div class="post-metadata">

**Author:** ![Pierdek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pierdek](https://forums.unrealengine.com/u/Pierdek)\
**Post date:** [November 3, 2014, 9:39pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/5 "2014-11-03T21:39:06Z")

</div>

Hi Ori, I had some time to spare on this issue, first of all your change is good but old particle collision module created in pre 4.5 without selected collision types are tracing everything, not only ECC\_WorldStatic.

Results:

```
UParticleSystemComponent::ParticleLineCheck
ObjectParams = {ObjectTypesToQuery=0 }

```

Compared to:

```
FCollisionObjectQueryParams bla(ECC_WorldStatic);
bla = {ObjectTypesToQuery=1 }

```

Of course when I added second ECC\_WorldStatic to collition types in particle collision module:

```
ObjectParams = {ObjectTypesToQuery=1 } 

```

ObjectParams is correct.

It seems something isn’t initialized properly. And now we need to revert your change or re-set every particle with collision module to get ECC\_WorldStatic 😉

---

<div class="post-metadata">

**Author:** ![Pierdek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pierdek](https://forums.unrealengine.com/u/Pierdek)\
**Post date:** [November 3, 2014, 9:44pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/6 "2014-11-03T21:44:22Z")

</div>

Of course issue SatanicBlood described isn’t fixed, because particle spawned with UGameplayStatistics doesn’t have Owner

Take a look again at:

```
void UParticleModuleCollision::Update(FParticleEmitterInstance* Owner, int32 Offset, float DeltaTime)

AActor* Actor = Owner->Component->GetOwner();
bool IsGameWorld = Owner->GetWorld()->IsGameWorld();

Actor = 0x0000000000000000 <NULL>
IsGameWorld = true

```

This condition completely disable particle system collision module:

```
if (!Actor && Owner->GetWorld()->IsGameWorld() )
{
  return;
}

```

This is real issue here.

Regards

Pierdek

---

<div class="post-metadata">

**Author:** ![Pierdek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pierdek](https://forums.unrealengine.com/u/Pierdek)\
**Post date:** [November 20, 2014, 9:40am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/7 "2014-11-20T09:40:40Z")

</div>

Closing answer without replying to comments is “really bad” support.

---

<div class="post-metadata">

**Author:** ![Pierdek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pierdek](https://forums.unrealengine.com/u/Pierdek)\
**Post date:** [December 10, 2014, 5:18pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/8 "2014-12-10T17:18:51Z")

</div>

In 4.6 every time when I restart editor after re-setting collisions ObjectParams is resettet to 0, which collide with everything.

I added to:  
void UParticleModuleCollision::Serialize(FArchive& Ar)

this piece of code:

```
if (Ar.IsLoading())
{
	ObjectParams = FCollisionObjectQueryParams(CollisionTypes);
}

```

and it seems collisions finally works as expected.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [December 10, 2014, 7:53pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/9 "2014-12-10T19:53:29Z")

</div>

Hey Pierdek -

I do not have access to GitHub user names but if you feel that you have solved an issue with engine, please post a GitHub pull request to insure that our engineers review it in context.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [December 16, 2014, 1:04am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/10 "2014-12-16T01:04:11Z")

</div>

Hi Pierdek,

Sorry you’re still experiencing issues with this. It is likely issue was marked resolved when one of staff responded (it happens automatically) or it is possible SatanicBlood accepted an answer. I have reopened issue and moved it to Bug Reports, and assigned issue to one of our support staff to look into. It looks like you were able to fix issue with a code change; have you submitted a GitHub pull request as Eric Ketchum has suggested?

---

<div class="post-metadata">

**Author:** ![Pierdek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pierdek](https://forums.unrealengine.com/u/Pierdek)\
**Post date:** [December 16, 2014, 8:32am UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/11 "2014-12-16T08:32:11Z")

</div>

Hi ,  
I haven’t submitted pull request, because I think my solution is little hacky, I pointed here my observations and I was waiting for answer.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [December 23, 2014, 3:36pm UTC](https://forums.unrealengine.com/t/problem-with-collisions-on-mesh-particles-when-spawning-from-destructible-mesh/287305/12 "2014-12-23T15:36:53Z")

</div>

Hello -

I have tested this extensively on our internal branch and can confirm that there is an issue here, I have entered it as UE-7001. As we continue to investigate and work toward a solution I will keep you all informed.

Thank You

Eric Ketchum
