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

Add compound triggers to KHR_physics_rigid_bodies #26

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

aaronfranke
Copy link
Contributor

@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. Trigger nodes that contribute to a compound trigger are explicitly listed in the compound trigger in this property. 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 (assuming it's implemented correctly):

Screenshot 2024-02-11 at 4 19 06 AM

"Sister PR" to OMI to stay in sync with this repo: omigroup/gltf-extensions#206

@eoineoineoin eoineoineoin merged commit 2a7814b into eoineoineoin:master Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants