# Dynamic mesh collision.

**URL:** <https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 29, 2023, 2:02pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541 "2023-08-29T14:02:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavcio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pavcio](https://forums.unrealengine.com/u/Pavcio)\
**Post date:** [August 29, 2023, 2:02pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/1 "2023-08-29T14:02:14Z")

</div>

Hi,

I’m working with Dynamic Mesh blueprint, and the problem that collision isn’t working, and by collision i mean physics and hits under cursor.

For now my dynamic mesh only consists of simple box (created with Append Box).

Collision is enabled, preset is set for blocking everything. If i create static mesh collision works properly.

---

<div class="post-metadata">

**Author:** ![GabUECV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gabuecv/32/1194717_2.png) [@GabUECV](https://forums.unrealengine.com/u/GabUECV)\
**Post date:** [August 29, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/2 "2023-08-29T19:42:56Z")

</div>

I remember that I had to use the attribute “Use Complex Collision as Simple” or something like that for collisions to work on dynamic meshes. I’m pretty sure there is a more correct alternative, but at least, it worked for me.

---

<div class="post-metadata">

**Author:** ![Pavcio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pavcio](https://forums.unrealengine.com/u/Pavcio)\
**Post date:** [August 29, 2023, 7:58pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/3 "2023-08-29T19:58:33Z")

</div>

Great, it worked for line trace, unfortunately it still doesnt work for physics.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 30, 2023, 3:59am UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/4 "2023-08-30T03:59:40Z")

</div>

There’s an option (tick box) to use Complex collision for physics… should be in the skeletal mesh details if I remember correctly.

---

<div class="post-metadata">

**Author:** ![Lufi0815](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lufi0815](https://forums.unrealengine.com/u/Lufi0815)\
**Post date:** [January 3, 2024, 11:41am UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/5 "2024-01-03T11:41:48Z")

</div>

It worked for me. Thank you!

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 11, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/6 "2024-03-11T14:41:14Z")

</div>

what worked for you? 🔫

---

<div class="post-metadata">

**Author:** ![samtheexeslayer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samtheexeslayer0](https://forums.unrealengine.com/u/samtheexeslayer0)\
**Post date:** [March 25, 2024, 6:08am UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/7 "2024-03-25T06:08:52Z")

</div>

# My Solution

Here are the properties I changed in the Dynamic Mesh Component:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/c/54c822073678abf30814b698ddbc3977b99a4bef.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/b/84b7474aa29a12f853e79dc414eb67c62dd3ed30.png)

I then generate all the points, add the triangles, apply the material/textures, THEN, generate my collision, here is how it looks:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/c/99c92157fa3b9e88fece96f682eb29445be92270.png)

I’m pretty sure you are required to at least create the points, triangles, then add them both to the mesh, AND THEN use the “Set Dynamic Mesh Collision from Mesh” Node

I don’t really know whether this is a good/optimal solution or not, but it works for me and I could care less TBH 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![matzuwa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matzuwa](https://forums.unrealengine.com/u/matzuwa)\
**Post date:** [April 4, 2025, 12:57pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/8 "2025-04-04T12:57:41Z")

</div>

I just figured out that collision shapes are not “applied” when generated. You still need to use this function to assign it to the dynamic mesh component.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/7/d77daa7f286aed7dd7ea801e888055280f47ae50.png)

---

<div class="post-metadata">

**Author:** ![mcd8604](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mcd8604](https://forums.unrealengine.com/u/mcd8604)\
**Post date:** [April 7, 2026, 11:27pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/9 "2026-04-07T23:27:43Z")

</div>

I just needed a DynamicMesh with complex collision to use LineTraceComponent from an Editor Utility BP. Turns out my problem was the mesh had too many polygons, so I just had to set this CVAR higher:

geometry.DynamicMesh.MaxComplexCollisionTriCount=1000000

I wanted complex because I have custom MeshAttributes per triangle in the mesh (TDynamicMeshScalarTriangleAttribute). With complex collision, the line trace returns the face index which I can then query the attribute values with. With simple collision, the face index isn’t returned (as you would intuit).

Eventually I saw an output log entry notifying me that the physics bodies weren’t being generated because MaxComplexCollisionTriCount was being exceeded.. but that took a while to find.. so maybe this will help prevent someone else from wasting as much time as I did.

---

<div class="post-metadata">

**Author:** ![Estelyon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Estelyon](https://forums.unrealengine.com/u/Estelyon)\
**Post date:** [May 23, 2026, 7:25pm UTC](https://forums.unrealengine.com/t/dynamic-mesh-collision/1276541/10 "2026-05-23T19:25:49Z")

</div>

Where did you find a node that creates a Simple Collision struct!? Could you please send a screenshot of your entire collision generation process? It would be a lifesaver, I cannot for the life of me get my dynamic mesh to have anything but a complex collision which obviously means it can’t be physically simulated… something which I need so it can move properly.
