-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnode.OMI_physics_body.trigger.schema.json
45 lines (45 loc) · 1.53 KB
/
node.OMI_physics_body.trigger.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "node.OMI_physics_body.trigger.schema.json",
"title": "OMI_physics_body Node Trigger Property",
"type": "object",
"description": "Parameters describing a trigger volume used for detecting physics objects.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"shape": {
"allOf": [{ "$ref": "glTFid.schema.json" }],
"description": "The index of the shape in the top level shapes array.",
"default": -1
},
"nodes": {
"type": "array",
"description": "For compound triggers, the set of descendant glTF nodes with a trigger property that make up this compound trigger.",
"items": {
"$ref": "glTFid.schema.json"
},
"uniqueItems": true,
"minItems": 1
},
"collisionFilter": {
"allOf": [{ "$ref": "glTFid.schema.json" }],
"description": "The index of the filter information in the top level collisionFilters array."
},
"extensions": { },
"extras": { }
},
"anyOf": [
{
"allOf": [
{ "required": ["shape"] },
{ "not": { "required": ["nodes"] } }
]
},
{
"allOf": [
{ "required": ["nodes"] },
{ "not": { "required": ["shape"] } },
{ "not": { "required": ["collisionFilter"] } }
]
}
]
}