I have a visually working UCustomMeshComponent however it doesn't respond to collision for example if I probe under the mouse cursor the mesh doesn't get hit. I've tried:
But this doesn't seem to help.
How can I correctly attach / enable the collision for this mesh? The visual geometry will suffice since it is very simple.
asked Nov 08 '14 at 05:40 PM in C++ Programming
Standard UCustomMeshComponent has not collision. To do that you should create class derived from CustomMeshComponent and IInterface_CollisionDataProvider. Then you should implement next functions: GetPhysicsTriMeshData, ContainsPhysicsTriMeshData, WantsNegXTriMesh, GetBodySetup. For example of implementing this function look at modified GeneratedMeshComponent.h in this link https://wiki.unrealengine.com/Procedural_Mesh_Generation.
Best regards, Gleb
answered Nov 14 '14 at 08:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here