forked from omigroup/gltf-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.OMI_physics_body.motion.schema.json
49 lines (49 loc) · 1.73 KB
/
node.OMI_physics_body.motion.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "node.OMI_physics_body.motion.schema.json",
"title": "OMI_physics_body Motion Property",
"type": "object",
"description": "Parameter describing the motion of a physics body glTF node.",
"allOf": [ { "$ref" : "glTFProperty.schema.json" } ],
"properties": {
"type": {
"type": "string",
"description": "The motion type of this physics body as a string.",
"enum": [
"static",
"kinematic",
"dynamic"
]
},
"mass": {
"type": "number",
"description": "The mass of this physics body in kilograms.",
"default": 1.0
},
"linearVelocity": {
"type": "array",
"description": "The initial linear velocity of the body in meters per second.",
"default": [0.0, 0.0, 0.0]
},
"angularVelocity": {
"type": "array",
"description": "The initial angular velocity of the body in radians per second.",
"default": [0.0, 0.0, 0.0]
},
"inertiaDiagonal": {
"type": "array",
"description": "The inertia around principle axes in kilogram meter squared. If zero or not specified, the inertia should be calculated automatically.",
"default": [0.0, 0.0, 0.0]
},
"inertiaOrientation": {
"type": "array",
"description": "The inertia orientation as a Quaternion. If not specified, the inertia is not rotated.",
"default": [0.0, 0.0, 0.0, 1.0]
},
"extensions": { },
"extras": { }
},
"required": [
"type"
]
}