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

Fix default collision shape on imported rigidbody #93506

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

BastiaanOlij
Copy link
Contributor

After discussing with @reduz , the functionality he was under the impression of existing was that we would use Trimesh as the default for static colliders, and Decompose Convex for dynamic colliders.

This does not seem to be applied.
This PR fixes the automatic creation of the collision shape if no value was saved to shape_type, however it does not embed the logic of changing it properly when you select the right option from the dropdown. Need some guidance on how this can be made to work in the UI here.

@BastiaanOlij BastiaanOlij force-pushed the fix_import_rigidbody branch from 9b19bb7 to ab0c974 Compare June 24, 2024 00:17
@BastiaanOlij
Copy link
Contributor Author

Adjusted this so our default mode is "automatic" after a suggestion @Calinou made.

This way we have our backwards compatibility in tact without needing to do weird interface changes

@BastiaanOlij BastiaanOlij marked this pull request as ready for review June 24, 2024 00:18
@BastiaanOlij BastiaanOlij requested a review from a team as a code owner June 24, 2024 00:18
@akien-mga akien-mga requested a review from Calinou June 25, 2024 07:52
Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good.

Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compatibility breaking discussion in meeting.

@akien-mga akien-mga merged commit 5bd25a2 into godotengine:master Jun 28, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@BastiaanOlij BastiaanOlij deleted the fix_import_rigidbody branch July 2, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GLB assets configured with "Decompose Convex" colliders now loading with "Trimesh"
6 participants