-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit compound triggers instead of implicit ones (#206)
- Loading branch information
1 parent
40b2572
commit 0523b1b
Showing
6 changed files
with
649 additions
and
7 deletions.
There are no files selected for viewing
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
72 changes: 72 additions & 0 deletions
72
extensions/2.0/OMI_physics_body/examples/basic/compound_trigger.gltf
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,72 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0" | ||
}, | ||
"extensionsUsed": ["OMI_physics_body", "OMI_physics_shape"], | ||
"extensions": { | ||
"OMI_physics_shape": { | ||
"shapes": [ | ||
{ | ||
"type": "box", | ||
"box": { | ||
"size": [3, 1, 1] | ||
} | ||
}, | ||
{ | ||
"type": "box", | ||
"box": { | ||
"size": [1, 3, 1] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"nodes": [ | ||
{ | ||
"children": [1, 2, 3], | ||
"extensions": { | ||
"OMI_physics_body": { | ||
"trigger": { | ||
"nodes": [1, 2] | ||
} | ||
} | ||
}, | ||
"name": "CompoundTriggerL" | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { | ||
"trigger": { | ||
"shape": 0 | ||
} | ||
} | ||
}, | ||
"name": "BottomOfL", | ||
"translation": [1, 0, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { | ||
"trigger": { | ||
"shape": 1 | ||
} | ||
} | ||
}, | ||
"name": "TopOfL", | ||
"translation": [0, 2, 0] | ||
}, | ||
{ | ||
"extensions": { | ||
"OMI_physics_body": { | ||
"trigger": { | ||
"shape": 0 | ||
} | ||
} | ||
}, | ||
"name": "SeparateTrigger", | ||
"translation": [0, 0, 4] | ||
} | ||
], | ||
"scene": 0, | ||
"scenes": [{ "nodes": [0] }] | ||
} |
Binary file added
BIN
+87.5 KB
extensions/2.0/OMI_physics_body/examples/triggers/sloped_floor_color.png
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.
Oops, something went wrong.