Skip to content

Commit

Permalink
Add example files for OMI_physics_body and OMI_physics_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Dec 24, 2023
1 parent 8b186ab commit 89b9fde
Show file tree
Hide file tree
Showing 65 changed files with 3,200 additions and 563 deletions.
882 changes: 882 additions & 0 deletions examples/omi_physics_body/gltf/ball_pit.gltf

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions examples/omi_physics_body/gltf/ball_pit.gltf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://diapqybopv4bm"
path="res://.godot/imported/ball_pit.gltf-1323bff07f27fb405cca075239dee184.scn"

[deps]

source_file="res://examples/omi_physics_body/gltf/ball_pit.gltf"
dest_files=["res://.godot/imported/ball_pit.gltf-1323bff07f27fb405cca075239dee184.scn"]

[params]

nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
Binary file added examples/omi_physics_body/gltf/ball_pit0.bin
Binary file not shown.
46 changes: 46 additions & 0 deletions examples/omi_physics_body/gltf/dynamic_box.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"asset": {
"version": "2.0"
},
"extensions": {
"OMI_physics_shape": {
"shapes": [
{
"type": "box",
"box": {
"size": [1, 2, 3]
}
}
]
}
},
"extensionsUsed": [
"OMI_physics_body",
"OMI_physics_shape"
],
"nodes": [
{
"children": [1],
"extensions": {
"OMI_physics_body": {
"motion": {
"type": "dynamic"
}
}
},
"name": "DynamicBox"
},
{
"extensions": {
"OMI_physics_body": {
"collider": {
"shape": 0
}
}
},
"name": "BoxShape"
}
],
"scene": 0,
"scenes": [{ "nodes": [0] }]
}
34 changes: 34 additions & 0 deletions examples/omi_physics_body/gltf/dynamic_box.gltf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://csff8bg7tcdep"
path="res://.godot/imported/dynamic_box.gltf-5b69ed8587ba51a35d135c583a8226a2.scn"

[deps]

source_file="res://examples/omi_physics_body/gltf/dynamic_box.gltf"
dest_files=["res://.godot/imported/dynamic_box.gltf-5b69ed8587ba51a35d135c583a8226a2.scn"]

[params]

nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
50 changes: 50 additions & 0 deletions examples/omi_physics_body/gltf/dynamic_with_velocity.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"asset": {
"version": "2.0"
},
"extensions": {
"OMI_physics_shape": {
"shapes": [
{
"type": "sphere",
"sphere": {
"radius": 0.5
}
}
]
}
},
"extensionsUsed": [
"OMI_physics_body",
"OMI_physics_shape"
],
"nodes": [
{
"children": [
1
],
"extensions": {
"OMI_physics_body": {
"motion": {
"angularVelocity": [4, 5, 6],
"linearVelocity": [1, 2, 3],
"type": "dynamic"
}
}
},
"name": "DynamicWithVelocity"
},
{
"extensions": {
"OMI_physics_body": {
"collider": {
"shape": 0
}
}
},
"name": "SphereShape"
}
],
"scene": 0,
"scenes": [{ "nodes": [0] }]
}
34 changes: 34 additions & 0 deletions examples/omi_physics_body/gltf/dynamic_with_velocity.gltf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://eg861a2cj7dh"
path="res://.godot/imported/dynamic_with_velocity.gltf-0ac6bbf5b18dabc361be1b05e27ae9df.scn"

[deps]

source_file="res://examples/omi_physics_body/gltf/dynamic_with_velocity.gltf"
dest_files=["res://.godot/imported/dynamic_with_velocity.gltf-0ac6bbf5b18dabc361be1b05e27ae9df.scn"]

[params]

nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
125 changes: 125 additions & 0 deletions examples/omi_physics_body/gltf/indirect_children.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"asset": {
"version": "2.0"
},
"extensions": {
"OMI_physics_shape": {
"shapes": [
{
"type": "box",
"box": {
"size": [1, 1, 1]
}
}
]
}
},
"extensionsUsed": ["OMI_physics_shape", "OMI_physics_body"],
"nodes": [
{
"children": [1, 3, 5, 8, 11, 12],
"name": "IndirectColliders"
},
{
"children": [2],
"extensions": {
"OMI_physics_body": {
"motion": { "type": "kinematic" }
}
},
"name": "KinematicDirect",
"translation": [0, 0, 0]
},
{
"extensions": {
"OMI_physics_body": {
"collider": { "shape": 0 }
}
},
"name": "BoxShapeKinematicDirect"
},
{
"children": [4],
"extensions": {
"OMI_physics_body": {
"trigger": {}
}
},
"name": "TriggerDirect",
"translation": [0, 0, -2]
},
{
"extensions": {
"OMI_physics_body": {
"trigger": { "shape": 0 }
}
},
"name": "BoxShapeTriggerDirect"
},
{
"children": [6],
"extensions": {
"OMI_physics_body": {
"motion": { "type": "kinematic" }
}
},
"name": "KinematicIndirect",
"translation": [-2, 0, 0]
},
{
"children": [7],
"name": "IntermediaryNodeKinematic"
},
{
"extensions": {
"OMI_physics_body": {
"collider": { "shape": 0 }
}
},
"name": "BoxShapeKinematicIndirect"
},
{
"children": [9],
"extensions": {
"OMI_physics_body": {
"trigger": {}
}
},
"name": "TriggerIndirect",
"translation": [-2, 0, -2]
},
{
"children": [10],
"name": "IntermediaryNodeTrigger"
},
{
"extensions": {
"OMI_physics_body": {
"trigger": { "shape": 0 }
}
},
"name": "BoxShapeTriggerIndirect"
},
{
"extensions": {
"OMI_physics_body": {
"motion": { "type": "kinematic" },
"collider": { "shape": 0 }
}
},
"name": "KinematicSameNode",
"translation": [2, 0, 0]
},
{
"extensions": {
"OMI_physics_body": {
"trigger": { "shape": 0 }
}
},
"name": "TriggerSameNode",
"translation": [2, 0, -2]
}
],
"scene": 0,
"scenes": [{ "nodes": [0] }]
}
34 changes: 34 additions & 0 deletions examples/omi_physics_body/gltf/indirect_children.gltf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://cmkrpebetoacu"
path="res://.godot/imported/indirect_children.gltf-732825a49ea5683e414178c5e7d87530.scn"

[deps]

source_file="res://examples/omi_physics_body/gltf/indirect_children.gltf"
dest_files=["res://.godot/imported/indirect_children.gltf-732825a49ea5683e414178c5e7d87530.scn"]

[params]

nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
Loading

0 comments on commit 89b9fde

Please sign in to comment.