Collision Geo Not Assigning to Static Mesh

   780   1   0
User Avatar
Member
11 posts
Joined: Dec. 2016
Offline
Hello,

I am generating multiple output static meshes from an HDA and creating corresponding custom collision meshes. To separate the pieces I am packing the visible geo and collision geo separately and then merging them. Before packing the collision I assign it the "collision_geo_#" group with "`collision_geo_ + detail(-1, "iteration", 0)`" in the group name.



When I bake the output, it simply outputs the visible and collision geo as separate static meshes.

What's confusing to me is that I was doing the same thing before and it was half-working: the HDA would output both meshes, but at least the static mesh would have the collision mesh assigned, so I just had to delete the collision meshes from outliner in Unreal. Now it's not working, I simply can't get any custom collision automatically assigned to the static mesh output.

I've looked through the docs plenty and the relevant forum posts but none of the solutions have worked for me. In the documentation, on the "Collision types" page, it says not to use "rendered_collision_geo" for custom collision. That makes sense. However on the "Setup collision for an asset" page, it also says not to use "collision_geo" for custom collision. So, what is the proper group name for custom complex collision meshes?

Edited by badman - Oct. 18, 2023 14:01:09

Attachments:
colliders.JPG (83.6 KB)
guidance_1.JPG (29.2 KB)
guidance_2.JPG (26.4 KB)

User Avatar
Member
11 posts
Joined: Dec. 2016
Offline
Figured it out partially. By merging before packing, both geos are exported as separate static meshes and appear in outliner, but the render geo has the custom collision mesh properly assigned, so I just need to delete the collider mesh from outliner. It would be nice if I don't have to delete the collider mesh manually since that seems unintended, but it's easier than manually assigning each collider to each visible mesh.
Edited by badman - Oct. 18, 2023 14:29:02

Attachments:
colliders_2.JPG (74.5 KB)

  • Quick Links