KHR_physics_rigid_bodies Draft Proposal
Obsoletes https://github.com/KhronosGroup/glTF/pull/2257 - lot of iteration and discussion since initial pull request.
Known Implementations
Blender importer/exporter Babylon.js importer Godot importer
Sample Assets
https://github.com/eoineoineoin/glTF_Physics/tree/master/samples
Hey @eoineoineoin! I was trying to reference the KHR_implicit_shapes extension schema, but it looks like it's not included in this PR (despite this commit message). Did you shift the changes to a separate PR that I missed?
@j9liu https://github.com/KhronosGroup/glTF/pull/2370
Is this extension going to be ratified this year? I see there is similar OMI proposal. Do we have a consensus on the specs? What do we need to move forward?
Is this extension going to be ratified this year? I see there is similar OMI proposal. Do we have a consensus on the specs? What do we need to move forward?
Yes, the plan is to ratify this extension. I can't speak for the OMI group directly, but the OMI physics spec started life as a very Godot-specific extension; over time, they've taken concepts from this extension and incorporated them so the two now have significant overlap. I believe they're maintaining their extension to perform some experiments, though don't know any details.
In terms of moving forward, any assistance you might provide reviewing the documentation, clarifying wording, etc. would be helpful. Even better, if you were to make an implementation importer/exporter, that would help validate any tricky parts with specific software.
I've been using this extension for well over a year now to export from blender into my own engine. It works really well for my needs!
The extension should support global gravity? Or support can be added as a separate extension.
It would be nice to see deformable body extension too.
@Igor-dvr For gravity, take a look at this extension: https://github.com/omigroup/gltf-extensions/tree/main/extensions/2.0/OMI_physics_gravity (may be "rebased" on top of KHR physics later).
For OMI_physics_body vs KHR_physics_rigid_bodies, the OMI extension continues to exist for 2 reasons:
-
It contains the currently preferred structure as determined by the consensus of OMI group, which is similar to this extension, but different in a few important ways (I can elaborate if needed) including things we'd like to see change in KHR physics. OMI can point to our extension and say "we think it should be done this way".
-
It provides a stable base for us to build on for other extensions such as vehicles, which will likely end up being "rebased" onto KHR physics in the future, after the spec becomes frozen and ratified. Both OMI and KHR physics have evolved with breaking changes, even over the last year, so for now it's beneficial to keep this as an "internal dependency".