Collision for procedurally generated meshes

Hi everyone,

A while ago there was a thread with a similar title but that doesn’t really help me in my situation.

I basically have a triangle in the scene using ‘the create create custom mesh triangles’ node.
Is there anyway to add collision to it?

Hey!

Solution 1(Blueprits):

You can add a Collision Component to your actor:

Solution 2 (C++):

Or you can look at this Wiki page:
[A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums][2]

Also here you can find example code usage:
[GitHub - SRombauts/UE4ProceduralMesh: UE4.7 Procedural Mesh Generation plugin][3]

What if my mesh a triangle. how would I do the collision for that then?

Then convert your procedural mesh into a static mesh and in the collision editor setup your collision boxes

Unfortunately I’m not able to do this.

The procedural generated mesh is created and destroyed multiple times, and is a triangle. Sometimes it a right triangle, sometimes isosceles, sometimes it’s neither.

If there was another way of programming a triangle in ue4 then maybe.

Did you ever figure this out?

Yea: There’s a blueprint node that was added in the update after where you can spawn a mesh