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

OMI_physics_body: Add explicit compound triggers instead of implicit ones #206

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Feb 11, 2024

This PR adds explicit compound triggers, specified by a new "nodes" property under the "trigger" property inside of the "OMI_physics_body" extension on nodes. This replaces the old way of doing compound triggers, where a node containing "OMI_physics_body" with "trigger": {} was considered a compound trigger. Now, nodes are explicitly listed in the compound trigger node. This approach was discussed in the Khronos glTF meeting.

This PR also includes some tweaks to the prose to clarify the behavior and usage of triggers.

The example file is expected to look like this after being imported into Godot (after my PR to implement this in Godot):

Screenshot 2024-02-11 at 4 19 06 AM

"Sister PR" to Microsoft/KHR to stay in sync with OMI: eoineoineoin/glTF_Physics#26

Godot implementation: godotengine/godot#88301

Copy link
Contributor

@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 reviewed
OMI_physics_body: Add explicit compound triggers instead of implicit ones.

Maybe @antpb, @lyuma and anyone interested can review and discuss approval of compound triggers for the next OMI gltf meeting since this is a substantive change.

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.

👍 agreed

@aaronfranke aaronfranke merged commit 0523b1b into omigroup:main Feb 29, 2024
2 checks passed
@aaronfranke aaronfranke deleted the compound-triggers branch February 29, 2024 23:39
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.

4 participants