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

Allow shapes to be directly on bodies or indirect children/descendants #169

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jun 7, 2023

This is based on some ongoing discussion on converging the physics specs KhronosGroup/glTF#2258

I am still skeptical of the portability of having indirect children, but Eoin very strongly desires this feature, so I think it would make sense to allow it and just recommend direct children for those desiring a simple document structure. Conceptually speaking, there is no reason this can't be allowed, the only objections are implementation difficulty.

Existing OMI assets do not need to be updated, they are automatically compliant, this is a superset.

I also added a test file that tests every possible edge case of the relative placement and types of OMI_physics_shape and OMI_physics_body in the node hierarchy, so an implementation can test all of the edge cases at once.

@robertlong
Copy link
Member

We're going to make a change to OMI_collider to not have default behavior so that implementing deeply nested colliders does not require traversing the ancestors of a collider to determine if it is the parent of a physics body or if it should have the default behavior of a collider without a physic body.

@aaronfranke
Copy link
Member Author

The PR Robert mentions that changes it to not have default behavior is this one #171

@aaronfranke aaronfranke changed the title Allow colliders to be directly on bodies or indirect descendants Allow shapes to be directly on bodies or indirect descendants Jun 22, 2023
@aaronfranke aaronfranke changed the title Allow shapes to be directly on bodies or indirect descendants Allow shapes to be directly on bodies or indirect children/descendants Jun 22, 2023
Copy link
Contributor

@antpb antpb left a comment

Choose a reason for hiding this comment

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

LGTM and approved in meeting on vote

@aaronfranke aaronfranke merged commit 0b4f73b into omigroup:main Aug 10, 2023
@aaronfranke aaronfranke deleted the collider-loc branch August 10, 2023 22:01
@antpb
Copy link
Contributor

antpb commented Aug 10, 2023

Screenshot 2023-08-10 at 5 01 57 PM

@antpb
Copy link
Contributor

antpb commented Aug 10, 2023

Screenshot 2023-08-10 at 5 02 30 PM

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.

3 participants