Dynamic mesh collision.

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.

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.

1 Like

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

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

It worked for me. Thank you!

what worked for you? :gun:

My Solution

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

image

image

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

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 :man_shrugging:

4 Likes

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.