Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Mesh::convex_decompose to scripts #11648

Open
Ryan-000 opened this issue Jan 27, 2025 · 0 comments · May be fixed by godotengine/godot#102068
Open

Expose Mesh::convex_decompose to scripts #11648

Ryan-000 opened this issue Jan 27, 2025 · 0 comments · May be fixed by godotengine/godot#102068

Comments

@Ryan-000
Copy link

Describe the project you are working on

Im working on a large 3d game and I need to generate "Multiple Convex" Shape3D's from code for mass importing.

Image

Describe the problem or limitation you are having in your project

Currently, the only way to do it is with MeshInstance3D::create_multiple_convex_collisions, but its very hacky to only get the Shape3D's since you need to instantiate a MeshInstance3D, then need to find the static body child, iteratate though its children of type CollsionShape3D and get the shapes that way, then you need to delete those nodes.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

You get to directly call Mesh::convex_decompose instead of hacking around it.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

See godotengine/godot#102068

If this enhancement will not be used often, can it be worked around with a few lines of script?

N/A

Is there a reason why this should be core and not an add-on in the asset library?

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants