-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathglTF.OMI_physics_joint.joint.limit.schema.json
63 lines (63 loc) · 2.94 KB
/
glTF.OMI_physics_joint.joint.limit.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "glTF.OMI_physics_joint.limit.schema.json",
"title": "OMI_physics_joint Physics Joint Limit",
"type": "object",
"description": "Parameters describing how a joint constrains the relative motion of a pair of nodes.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"linearAxes": {
"description": "The indices of the linear axes which are limited, constraining the linear motion in 1, 2 or 3 dimensions. 1D keeps an object some distance from an infinite plane. 2D keeps an object some distance from an infinite line. 3D keeps an object some distance from a point. Can only contain 0 (X), 1 (Y), or 2 (Z), so [0, 1, 2] constrains all three axes.",
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 2
},
"minItems": 0,
"maxItems": 3,
"uniqueItems": true
},
"angularAxes": {
"description": "The indices of the angular axes which are limited, constraining the angular motion in 1, 2 or 3 dimensions. 1D limits rotation about one axis (e.g. a universal joint). 2D limits rotation about two axes (e.g. a cone). 3D limits rotation about all three axes. Can only contain 0 (X), 1 (Y), or 2 (Z), so [0, 1, 2] constrains all three axes.",
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 2
},
"minItems": 0,
"maxItems": 3,
"uniqueItems": true
},
"min": {
"type": "number",
"description": "The minimum of the allowed range of relative distance in meters, or angle in radians. If not specified, the minimum is unbounded (negative infinity). At least one of min or max should be present, or the limit is useless."
},
"max": {
"type": "number",
"description": "The maximum of the allowed range of relative distance in meters, or angle in radians. If not specified, the maximum is unbounded (positive infinity). At least one of min or max should be present, or the limit is useless."
},
"stiffness": {
"type": "number",
"description": "The stiffness strength used to calculate a restorative force when the joint is extended beyond the limit. If not present, the limit should be infinitely stiff.",
"minimum": 0.0
},
"damping": {
"type": "number",
"description": "Damping applied to the velocity when the joint is extended beyond the limit.",
"minimum": 0.0,
"default": 0.0
},
"extensions": { },
"extras": { }
},
"oneOf": [
{
"required": ["linearAxes"]
},
{
"required": ["angularAxes"]
}
]
}