Skip to content

Commit

Permalink
Merge pull request #216 from aaronfranke/OMI_physics_gravity
Browse files Browse the repository at this point in the history
OMI_physics_gravity
  • Loading branch information
antpb committed May 23, 2024
2 parents bf3c4cd + 46a1956 commit 2174467
Show file tree
Hide file tree
Showing 27 changed files with 2,433 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The extension has been submitted and merged as an OMI vendor extension. Alternat
- [OMI_link](extensions/2.0/OMI_link)
- [OMI_personality](extensions/2.0/OMI_personality)
- [OMI_physics_body](extensions/2.0/OMI_physics_body/README.md)
- [OMI_physics_gravity](extensions/2.0/OMI_physics_gravity/README.md)
- [OMI_physics_joint](extensions/2.0/OMI_physics_joint/README.md)
- [OMI_physics_shape](extensions/2.0/OMI_physics_shape/README.md)
- [OMI_spawn_point](extensions/2.0/OMI_spawn_point)
Expand Down Expand Up @@ -234,6 +235,27 @@ The extension has been submitted and merged as an OMI vendor extension. Alternat
<td>❌</td>
<td>❌</td>
</tr>
<tr>
<td>
<a href="https://github.com/omigroup/gltf-extensions/tree/main/extensions/2.0/OMI_physics_gravity">
OMI_physics_gravity
</a>
</td>
<td>Stage 1</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td><a href="https://github.com/omigroup/omi-godot/pull/5">🚧🧩</a></td>
<td><a href="https://github.com/omigroup/omi-godot/pull/5">🚧🧩</a></td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
<td>❌</td>
</tr>
<tr>
<td>
<a href="https://github.com/omigroup/gltf-extensions/tree/main/extensions/2.0/omi_physics_joint">
Expand Down
257 changes: 257 additions & 0 deletions extensions/2.0/OMI_physics_gravity/README.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"asset": {
"extensions": { "KHR_xmp_json_ld": { "packet": 0 } },
"generator": "Godot Engine v4.3.dev.custom_build",
"version": "2.0"
},
"extensionsUsed": [
"GODOT_single_root",
"KHR_xmp_json_ld",
"OMI_physics_body",
"OMI_physics_gravity",
"OMI_physics_shape"
],
"extensions": {
"KHR_xmp_json_ld": {
"packets": [
{
"@context": { "dc": "http://purl.org/dc/elements/1.1/" },
"@id": "",
"dc:coverage": "Earth",
"dc:creator": { "@list": ["NASA", "aaronfranke"] },
"dc:description": "This spectacular 'blue marble' image is the most detailed true-color image of the entire Earth to date. Using a collection of satellite-based observations, scientists and visualizers stitched together months of observations of the land surface, oceans, sea ice, and clouds into a seamless, true-color mosaic. This model is at a one-millionth scale.",
"dc:format": "model/gltf+json",
"dc:rights": "NASA Image Use Policy https://visibleearth.nasa.gov/image-use-policy",
"dc:source": "https://visibleearth.nasa.gov/images/57752/blue-marble-land-surface-shallow-water-and-shaded-topography/57754l",
"dc:subject": { "@set": ["Earth"] },
"dc:title": "Blue Marble: Land Surface, Shallow Water, and Shaded Topography",
"dc:type": { "@set": ["Planet", "Demo", "Test"] }
}
]
},
"OMI_physics_gravity": {
"gravity": 0.0
},
"OMI_physics_shape": {
"shapes": [
{
"type": "sphere",
"sphere": {
"radius": 40.0
}
},
{
"type": "sphere",
"sphere": {
"radius": 6.37814
}
}
]
}
},
"nodes": [
{
"name": "EarthMillionthScale",
"children": [1, 2, 3],
"extensions": {
"OMI_physics_body": {
"motion": {
"type": "static",
"mass": 5972200.0
}
}
}
},
{
"name": "EarthCollider",
"extensions": {
"OMI_physics_body": {
"collider": {
"shape": 1
}
}
}
},
{
"name": "EarthMesh",
"mesh": 0
},
{
"name": "EarthGravity",
"extensions": {
"OMI_physics_body": {
"trigger": {
"shape": 0
}
},
"OMI_physics_gravity": {
"gravity": 9.80665,
"point": { "unitDistance": 6.37814 },
"type": "point"
}
}
}
],
"scene": 0,
"scenes": [{ "nodes": [0] }],
"materials": [
{
"doubleSided": true,
"name": "EarthMaterial",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 0,
"metallicRoughnessTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"name": "EarthMeshData",
"primitives": [
{
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0
}
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
}
],
"images": [
{
"mimeType": "image/jpeg",
"name": "earth_color_4096",
"uri": "earth_color_4096.jpg"
},
{
"mimeType": "image/png",
"name": "earth_roughness",
"uri": "earth_roughness.png"
}
],
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 2447,
"max": [6.378139495849609, 6.378159999847412, 6.378159999847412],
"min": [-6.378159999847412, -6.378159999847412, -6.378159999847412],
"type": "VEC3"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 2447,
"type": "VEC3"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 2447,
"type": "VEC2"
},
{
"bufferView": 3,
"componentType": 5123,
"count": 14400,
"type": "SCALAR"
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 29364,
"byteOffset": 0,
"target": 34962
},
{
"buffer": 0,
"byteLength": 29364,
"byteOffset": 29364,
"target": 34962
},
{
"buffer": 0,
"byteLength": 19576,
"byteOffset": 58728,
"target": 34962
},
{
"buffer": 0,
"byteLength": 28800,
"byteOffset": 78304,
"target": 34963
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987
}
],
"buffers": [
{
"byteLength": 107104,
"uri": "earth_millionth_scale.bin"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading

0 comments on commit 2174467

Please sign in to comment.