Download

Custom Damage Model

Hey, So I have a vehicle (static mesh) that I want to have a damage mesh for. What I mean by that is that I want to have a collision shape that is slightly more complex than the mesh that I use for physics, and then have other smaller meshes inside of it that act as “modules” that can be hit independently.

I was hoping that Unreal would provide some way to use line trace to get the hit collision primitive, then I could apply a trace hit to see if I hit the main body and then do another trace for all of the modules inside of it. Unfortunately, I can’t seem to figure out a way to trace on a collision-primitive level.

My other thought would be to create two more additional static meshes in their own channels, one for the main collision model and then another for the modules. I could then use the UV data on the models to indicate which module was hit and wrap in some additional data I need.

Any ideas as to how this could best be accomplished?