-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example files for OMI_physics_body and OMI_physics_shape
- Loading branch information
1 parent
160acd1
commit e8b6fa1
Showing
40 changed files
with
3,539 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://cgi83hhy1df6v" | ||
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="Node3D" | ||
nodes/root_name="Scene Root" | ||
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 | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
import_script/path="" | ||
_subresources={} | ||
gltf/embedded_image_handling=1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"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": { "type": "kinematic" } }, | ||
"name": "KinematicDirect", | ||
"translation": [0, 0, 0] | ||
}, | ||
{ | ||
"extensions": { "OMI_physics_shape": { "shape": 0 } }, | ||
"name": "BoxShapeKinematicDirect" | ||
}, | ||
{ | ||
"children": [4], | ||
"extensions": { "OMI_physics_body": { "type": "trigger" } }, | ||
"name": "TriggerDirect", | ||
"translation": [0, 0, -2] | ||
}, | ||
{ | ||
"extensions": { "OMI_physics_shape": { "shape": 0 } }, | ||
"name": "BoxShapeTriggerDirect" | ||
}, | ||
{ | ||
"children": [6], | ||
"extensions": { "OMI_physics_body": { "type": "kinematic" } }, | ||
"name": "KinematicIndirect", | ||
"translation": [-2, 0, 0] | ||
}, | ||
{ | ||
"children": [7], | ||
"name": "IntermediaryNodeKinematic" | ||
}, | ||
{ | ||
"extensions": { "OMI_physics_shape": { "shape": 0 } }, | ||
"name": "BoxShapeKinematicIndirect" | ||
}, | ||
{ | ||
"children": [9], | ||
"extensions": { "OMI_physics_body": { "type": "trigger" } }, | ||
"name": "TriggerIndirect", | ||
"translation": [-2, 0, -2] | ||
}, | ||
{ | ||
"children": [10], | ||
"name": "IntermediaryNodeTrigger" | ||
}, | ||
{ | ||
"extensions": { "OMI_physics_shape": { "shape": 0 } }, | ||
"name": "BoxShapeTriggerIndirect" | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "kinematic" }, | ||
"OMI_physics_shape": { "shape": 0 } | ||
}, | ||
"name": "KinematicSameNode", | ||
"translation": [2, 0, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "trigger" }, | ||
"OMI_physics_shape": { "shape": 0 } | ||
}, | ||
"name": "TriggerSameNode", | ||
"translation": [2, 0, -2] | ||
} | ||
], | ||
"scene": 0, | ||
"scenes": [{ "nodes": [0] }] | ||
} |
32 changes: 32 additions & 0 deletions
32
examples/omi_physics_body/gltf/indirect_children.gltf.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://hkb2c7anourq" | ||
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="Node3D" | ||
nodes/root_name="Scene Root" | ||
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 | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
import_script/path="" | ||
_subresources={} | ||
gltf/embedded_image_handling=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0" | ||
}, | ||
"extensions": { | ||
"OMI_collider": { | ||
"colliders": [ | ||
{ | ||
"size": [1, 1, 1], | ||
"type": "box" | ||
}, | ||
{ | ||
"isTrigger": true, | ||
"size": [1, 1, 1], | ||
"type": "box" | ||
} | ||
] | ||
} | ||
}, | ||
"extensionsUsed": ["OMI_collider", "OMI_physics_body"], | ||
"nodes": [ | ||
{ | ||
"children": [1, 4, 8, 11, 15, 16, 17, 18], | ||
"name": "IndirectColliders" | ||
}, | ||
{ | ||
"children": [2, 3], | ||
"extensions": { "OMI_physics_body": { "type": "kinematic" } }, | ||
"name": "KinematicDirect", | ||
"translation": [-2, 0, 0] | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 0 } }, | ||
"name": "ColliderShapeDirect" | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 1 } }, | ||
"name": "TriggerShapeDirect", | ||
"translation": [0, 1, 0] | ||
}, | ||
{ | ||
"children": [5], | ||
"extensions": { "OMI_physics_body": { "type": "kinematic" } }, | ||
"name": "KinematicIndirect" | ||
}, | ||
{ | ||
"children": [6, 7], | ||
"name": "IntermediaryNodeKinematic" }, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 0 } }, | ||
"name": "ColliderShapeIndirect" | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 1 } }, | ||
"name": "TriggerShapeIndirect", | ||
"translation": [0, 1, 0] | ||
}, | ||
{ | ||
"children": [9, 10], | ||
"extensions": { "OMI_physics_body": { "type": "trigger" } }, | ||
"name": "TriggerDirect", | ||
"translation": [-2, 0, -2] | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 0 } }, | ||
"name": "ColliderShapeTriggerDirect" | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 1 } }, | ||
"name": "TriggerShapeTriggerDirect", | ||
"translation": [0, 1, 0] | ||
}, | ||
{ | ||
"children": [12], | ||
"extensions": { "OMI_physics_body": { "type": "trigger" } }, | ||
"name": "TriggerIndirect", | ||
"translation": [0, 0, -2] | ||
}, | ||
{ | ||
"children": [13, 14], | ||
"name": "IntermediaryNodeTrigger" | ||
}, | ||
{ | ||
"extensions": { "OMI_collider": { "collider": 0 } }, | ||
"name": "ColliderShapeTriggerIndirect" | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_collider": { "collider": 1 } | ||
}, | ||
"name": "TriggerShapeTriggerIndirect", | ||
"translation": [0, 1, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "kinematic" }, | ||
"OMI_collider": { "collider": 0 } | ||
}, | ||
"name": "KinematicSameNodeSolid", | ||
"translation": [2, 0, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "trigger" }, | ||
"OMI_collider": { "collider": 1 } | ||
}, | ||
"name": "TriggerSameNodeTrigger", | ||
"translation": [4, 0, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "trigger" }, | ||
"OMI_collider": { "collider": 0 } | ||
}, | ||
"name": "TriggerSameNodeSolid", | ||
"translation": [2, 0, -2] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { "type": "kinematic" }, | ||
"OMI_collider": { "collider": 1 } | ||
}, | ||
"name": "KinematicSameNodeTrigger", | ||
"translation": [4, 0, -2] | ||
} | ||
], | ||
"scene": 0, | ||
"scenes": [{ "nodes": [0] }] | ||
} |
32 changes: 32 additions & 0 deletions
32
examples/omi_physics_body/gltf/indirect_colliders.gltf.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://c0vcj7sq0h6" | ||
path="res://.godot/imported/indirect_colliders.gltf-7df7d7bc27817fe2b7a684301356ec87.scn" | ||
|
||
[deps] | ||
|
||
source_file="res://examples/omi_physics_body/gltf/indirect_colliders.gltf" | ||
dest_files=["res://.godot/imported/indirect_colliders.gltf-7df7d7bc27817fe2b7a684301356ec87.scn"] | ||
|
||
[params] | ||
|
||
nodes/root_type="Node3D" | ||
nodes/root_name="Scene Root" | ||
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 | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
import_script/path="" | ||
_subresources={} | ||
gltf/embedded_image_handling=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0" | ||
}, | ||
"extensions": { | ||
"OMI_collider": { | ||
"colliders": [ | ||
{ | ||
"radius": 0.5, | ||
"type": "sphere" | ||
} | ||
] | ||
} | ||
}, | ||
"extensionsUsed": [ | ||
"OMI_collider", | ||
"OMI_physics_body" | ||
], | ||
"nodes": [ | ||
{ | ||
"children": [ | ||
1 | ||
], | ||
"extensions": { | ||
"OMI_physics_body": { | ||
"angularVelocity": [ | ||
4, | ||
5, | ||
6 | ||
], | ||
"linearVelocity": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"type": "rigid" | ||
} | ||
}, | ||
"name": "RigidWithVelocity" | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_collider": { | ||
"collider": 0 | ||
} | ||
}, | ||
"name": "SphereCollider" | ||
} | ||
], | ||
"scene": 0, | ||
"scenes": [ | ||
{ | ||
"nodes": [ | ||
0 | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.