Skip to content

Added option to generate a collision mesh from multiple convex parts#1553

Merged
jankrassnigg merged 1 commit into
devfrom
user/jk/convex-group-colliders
May 7, 2025
Merged

Added option to generate a collision mesh from multiple convex parts#1553
jankrassnigg merged 1 commit into
devfrom
user/jk/convex-group-colliders

Conversation

@jankrassnigg
Copy link
Copy Markdown
Member

This allows to import complex meshes as convex meshes, which are made up of multiple convex pieces. In contrast to the convex decomposition, it doesn't try to get close to the original shape, instead it just builds one convex hull for each material group.

So for example this triangle mesh which has two different materials:

grafik

Ends up like this:

grafik

That can then be used for dynamic rigid bodies.

Of course this is even more interesting, when each material group is already built as a good collider mesh, then the result can actually represent the real shape quite well.

Each material can get it's own surface, as well.

@jankrassnigg jankrassnigg added this to the Next Release milestone May 6, 2025
@jankrassnigg jankrassnigg added the improvement Improves an existing feature label May 6, 2025
@jankrassnigg jankrassnigg merged commit fdd93a2 into dev May 7, 2025
14 checks passed
@jankrassnigg jankrassnigg deleted the user/jk/convex-group-colliders branch May 7, 2025 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documented improvement Improves an existing feature release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant