Collision for procedural mesh generation
I use this link, and this link for making collision for generation meshes. I try include Physic Simulation and after that my mesh flying into the floor and remove from level. If i hadn't it , my character can jump on it and stoping.
Code which make mesh:
How i can include physic simulation and get correct work?
P.S.: I use MacOS.
Thanks for help!
asked Mar 15 '16 at 08:51 PM in C++ Programming
UProceduralMeshComponent::CreateMeshSection(int32 SectionIndex, const TArray& Vertices, const TArray& Triangles, const TArray& Normals, const TArray& UV0, const TArray& VertexColors, const TArray& Tangents, bool bCreateCollision);
When you're building the mesh, make sure to set the bCreateCollision flag..set the collision channel response as you require and it should work fine.
answered Apr 22 '16 at 08:30 AM
In my case, when using UE 4.17.1 and procedural meshes, the collision only worked in preview mode, but in launch mode, they would not work even with the above suggested flag set to true. I had to add the following line after setting up mesh data:
Follow this question
Once you sign in you will be able to subscribe for any updates here