@bendyline/molen-tooling 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capture/harness.js +551 -335
- package/dist/capture/worldgen-preview.js +539 -325
- package/dist/docs-src/guide/adaptive-performance.md +23 -17
- package/dist/docs-src/guide/aircraft.md +54 -16
- package/dist/docs-src/guide/ambient-life.md +15 -2
- package/dist/docs-src/guide/audio.md +38 -1
- package/dist/docs-src/guide/browser-mount.md +11 -0
- package/dist/docs-src/guide/determinism.md +2 -1
- package/dist/docs-src/guide/earth-view.md +45 -8
- package/dist/docs-src/guide/glass.md +134 -0
- package/dist/docs-src/guide/graphics-performance.md +24 -6
- package/dist/docs-src/guide/navigation.md +23 -5
- package/dist/docs-src/guide/night-lighting.md +2 -1
- package/dist/docs-src/guide/regional-fleets.md +9 -4
- package/dist/docs-src/guide/regional-world.md +6 -2
- package/dist/docs-src/guide/sky.md +2 -2
- package/dist/docs-src/guide/surface-rendering.md +9 -3
- package/dist/docs-src/guide/terrain.md +32 -5
- package/dist/docs-src/guide/vehicle-interiors.md +34 -3
- package/dist/docs-src/guide/vehicles.md +47 -1
- package/dist/docs-src/guide/weather.md +60 -21
- package/dist/docs-src/llms.txt +3 -2
- package/dist/docs-src/schemas/components.md +979 -140
- package/dist/templates/city-courier/gen/molen-types.ts +103 -2
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +102 -1
- package/dist/templates/city-courier/src/shared/playback.ts +21 -10
- package/dist/templates/cubes/src/shared/playback.ts +21 -10
- package/dist/templates/data-viz/src/shared/playback.ts +21 -10
- package/dist/templates/figures-gallery/src/shared/playback.ts +21 -10
- package/dist/templates/index.json +17 -17
- package/dist/templates/skybound/gen/molen-types.ts +103 -2
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +102 -1
- package/dist/templates/skybound/src/shared/playback.ts +21 -10
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +102 -1
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +103 -2
- package/dist/templates/top-down-arena/src/shared/playback.ts +21 -10
- package/package.json +12 -12
|
@@ -58,6 +58,8 @@ with `registerComponent(name, zodSchema, meta)` from `@bendyline/molen-schema`.
|
|
|
58
58
|
| `figureState` | figures | Kernel-owned locomotion state of a figure (mode, quantized speed, tick-anchored gait phase). Read it; the figures systems write it. |
|
|
59
59
|
| `force` | physics-rapier | Continuous force/torque applied every tick while present. |
|
|
60
60
|
| `fsm` | kernel/gameplay | Minimal event-driven state machine: transitions fire on world events targeting the entity. |
|
|
61
|
+
| `glass` | kernel/glass | Breakable glass surfaces with metric geometry, material fracture and independent frame/interlayer retention. |
|
|
62
|
+
| `glassState` | kernel/glass | Persistent glass fracture, retention and release state. Missing panes are intact; remove the component to repair. |
|
|
61
63
|
| `health` | content | Common gameplay hit-points component. |
|
|
62
64
|
| `impulse` | physics-rapier | One-shot impulse/torque; consumed the tick it is applied. |
|
|
63
65
|
| `joint` | physics-rapier | Impulse joint to another body (fixed/revolute/spherical/prismatic + limits/motor). |
|
|
@@ -4456,6 +4458,44 @@ Required: `kind`, `spec`
|
|
|
4456
4458
|
"spec": {
|
|
4457
4459
|
"type": "object",
|
|
4458
4460
|
"properties": {
|
|
4461
|
+
"actuators": {
|
|
4462
|
+
"description": "External actuators setting.",
|
|
4463
|
+
"type": "object",
|
|
4464
|
+
"propertyNames": {
|
|
4465
|
+
"type": "string",
|
|
4466
|
+
"maxLength": 64,
|
|
4467
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
4468
|
+
},
|
|
4469
|
+
"additionalProperties": {
|
|
4470
|
+
"type": "object",
|
|
4471
|
+
"properties": {
|
|
4472
|
+
"seconds": {
|
|
4473
|
+
"type": "number",
|
|
4474
|
+
"minimum": 0,
|
|
4475
|
+
"description": "Seconds for full travel or a full cycle."
|
|
4476
|
+
},
|
|
4477
|
+
"initial": {
|
|
4478
|
+
"description": "Rest position or phase; defaults to zero.",
|
|
4479
|
+
"type": "number",
|
|
4480
|
+
"minimum": 0,
|
|
4481
|
+
"maximum": 1
|
|
4482
|
+
},
|
|
4483
|
+
"mode": {
|
|
4484
|
+
"description": "Position by default. Cycles park when off; latches cannot reverse.",
|
|
4485
|
+
"type": "string",
|
|
4486
|
+
"enum": [
|
|
4487
|
+
"position",
|
|
4488
|
+
"cycle",
|
|
4489
|
+
"latch"
|
|
4490
|
+
]
|
|
4491
|
+
}
|
|
4492
|
+
},
|
|
4493
|
+
"required": [
|
|
4494
|
+
"seconds"
|
|
4495
|
+
],
|
|
4496
|
+
"additionalProperties": false
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4459
4499
|
"label": {
|
|
4460
4500
|
"type": "string",
|
|
4461
4501
|
"minLength": 1,
|
|
@@ -5126,6 +5166,11 @@ Required: `kind`, `spec`
|
|
|
5126
5166
|
"minimum": 0,
|
|
5127
5167
|
"description": "Drag coefficient of the landing gear fully down; scales with the gear position."
|
|
5128
5168
|
},
|
|
5169
|
+
"speedBrakeDrag": {
|
|
5170
|
+
"description": "Additional drag coefficient at full speedBrake actuator extension.",
|
|
5171
|
+
"type": "number",
|
|
5172
|
+
"minimum": 0
|
|
5173
|
+
},
|
|
5129
5174
|
"flapDrag": {
|
|
5130
5175
|
"type": "number",
|
|
5131
5176
|
"minimum": 0,
|
|
@@ -5227,6 +5272,15 @@ Required: `kind`, `spec`
|
|
|
5227
5272
|
"description": "External helicopter setting.",
|
|
5228
5273
|
"type": "object",
|
|
5229
5274
|
"properties": {
|
|
5275
|
+
"fixedGear": {
|
|
5276
|
+
"description": "Fixed skids or wheels by default; false enables retractable gear.",
|
|
5277
|
+
"type": "boolean"
|
|
5278
|
+
},
|
|
5279
|
+
"gearTransitTime": {
|
|
5280
|
+
"description": "Seconds for full retractable gear travel.",
|
|
5281
|
+
"type": "number",
|
|
5282
|
+
"minimum": 0
|
|
5283
|
+
},
|
|
5230
5284
|
"rotorPosition": {
|
|
5231
5285
|
"minItems": 3,
|
|
5232
5286
|
"maxItems": 3,
|
|
@@ -5462,13 +5516,13 @@ Required: `kind`, `spec`
|
|
|
5462
5516
|
"rightWing",
|
|
5463
5517
|
"tail",
|
|
5464
5518
|
"rotor",
|
|
5519
|
+
"tailRotor",
|
|
5465
5520
|
"gear",
|
|
5466
5521
|
"engine"
|
|
5467
5522
|
],
|
|
5468
5523
|
"description": "Flight role; +X is the left wing. Body sections cannot detach."
|
|
5469
5524
|
},
|
|
5470
5525
|
"probes": {
|
|
5471
|
-
"minItems": 1,
|
|
5472
5526
|
"maxItems": 64,
|
|
5473
5527
|
"type": "array",
|
|
5474
5528
|
"items": {
|
|
@@ -5486,6 +5540,92 @@ Required: `kind`, `spec`
|
|
|
5486
5540
|
"exclusiveMinimum": 0,
|
|
5487
5541
|
"description": "Probe and detached-piece collision radius, meters."
|
|
5488
5542
|
},
|
|
5543
|
+
"disc": {
|
|
5544
|
+
"description": "Finite rotor disc replacing sphere probes, including at rest. Blade speed contributes to strike damage.",
|
|
5545
|
+
"type": "object",
|
|
5546
|
+
"properties": {
|
|
5547
|
+
"center": {
|
|
5548
|
+
"minItems": 3,
|
|
5549
|
+
"maxItems": 3,
|
|
5550
|
+
"type": "array",
|
|
5551
|
+
"items": {
|
|
5552
|
+
"type": "number"
|
|
5553
|
+
},
|
|
5554
|
+
"description": "Rotor hub in model coordinates, meters."
|
|
5555
|
+
},
|
|
5556
|
+
"normal": {
|
|
5557
|
+
"minItems": 3,
|
|
5558
|
+
"maxItems": 3,
|
|
5559
|
+
"type": "array",
|
|
5560
|
+
"items": {
|
|
5561
|
+
"type": "number"
|
|
5562
|
+
},
|
|
5563
|
+
"description": "Unit rotation axis in model coordinates."
|
|
5564
|
+
},
|
|
5565
|
+
"radius": {
|
|
5566
|
+
"type": "number",
|
|
5567
|
+
"exclusiveMinimum": 0,
|
|
5568
|
+
"description": "Full swept rotor radius, meters."
|
|
5569
|
+
},
|
|
5570
|
+
"halfThickness": {
|
|
5571
|
+
"type": "number",
|
|
5572
|
+
"exclusiveMinimum": 0,
|
|
5573
|
+
"description": "Half the swept blade thickness, meters."
|
|
5574
|
+
},
|
|
5575
|
+
"rotor": {
|
|
5576
|
+
"type": "string",
|
|
5577
|
+
"minLength": 1,
|
|
5578
|
+
"description": "Node in visual.rotors supplying engine RPM and speed multiplier."
|
|
5579
|
+
},
|
|
5580
|
+
"tilt": {
|
|
5581
|
+
"description": "Powered-lift hinge, in model coordinates at forward thrust.",
|
|
5582
|
+
"type": "object",
|
|
5583
|
+
"properties": {
|
|
5584
|
+
"pivot": {
|
|
5585
|
+
"minItems": 3,
|
|
5586
|
+
"maxItems": 3,
|
|
5587
|
+
"type": "array",
|
|
5588
|
+
"items": {
|
|
5589
|
+
"type": "number"
|
|
5590
|
+
},
|
|
5591
|
+
"description": "Powered-lift hinge pivot in model coordinates, meters."
|
|
5592
|
+
},
|
|
5593
|
+
"axis": {
|
|
5594
|
+
"minItems": 3,
|
|
5595
|
+
"maxItems": 3,
|
|
5596
|
+
"type": "array",
|
|
5597
|
+
"items": {
|
|
5598
|
+
"type": "number"
|
|
5599
|
+
},
|
|
5600
|
+
"description": "Unit powered-lift hinge axis in model coordinates."
|
|
5601
|
+
},
|
|
5602
|
+
"angle": {
|
|
5603
|
+
"type": "number",
|
|
5604
|
+
"description": "Hinge rotation in radians at full thrustVectorPosition."
|
|
5605
|
+
}
|
|
5606
|
+
},
|
|
5607
|
+
"required": [
|
|
5608
|
+
"pivot",
|
|
5609
|
+
"axis",
|
|
5610
|
+
"angle"
|
|
5611
|
+
],
|
|
5612
|
+
"additionalProperties": false
|
|
5613
|
+
}
|
|
5614
|
+
},
|
|
5615
|
+
"required": [
|
|
5616
|
+
"center",
|
|
5617
|
+
"normal",
|
|
5618
|
+
"radius",
|
|
5619
|
+
"halfThickness",
|
|
5620
|
+
"rotor"
|
|
5621
|
+
],
|
|
5622
|
+
"additionalProperties": false
|
|
5623
|
+
},
|
|
5624
|
+
"parent": {
|
|
5625
|
+
"description": "Supporting part id; separation also releases this part.",
|
|
5626
|
+
"type": "string",
|
|
5627
|
+
"minLength": 1
|
|
5628
|
+
},
|
|
5489
5629
|
"center": {
|
|
5490
5630
|
"minItems": 3,
|
|
5491
5631
|
"maxItems": 3,
|
|
@@ -6276,6 +6416,27 @@ Required: `power`, `pitch`, `roll`, `yaw`, `brake`, `engine`, `gear`, `flaps`
|
|
|
6276
6416
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6277
6417
|
"type": "object",
|
|
6278
6418
|
"properties": {
|
|
6419
|
+
"actuators": {
|
|
6420
|
+
"description": "Mechanism targets from zero to one, or on/off selections.",
|
|
6421
|
+
"type": "object",
|
|
6422
|
+
"propertyNames": {
|
|
6423
|
+
"type": "string",
|
|
6424
|
+
"maxLength": 64,
|
|
6425
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
6426
|
+
},
|
|
6427
|
+
"additionalProperties": {
|
|
6428
|
+
"anyOf": [
|
|
6429
|
+
{
|
|
6430
|
+
"type": "number",
|
|
6431
|
+
"minimum": 0,
|
|
6432
|
+
"maximum": 1
|
|
6433
|
+
},
|
|
6434
|
+
{
|
|
6435
|
+
"type": "boolean"
|
|
6436
|
+
}
|
|
6437
|
+
]
|
|
6438
|
+
}
|
|
6439
|
+
},
|
|
6279
6440
|
"mixture": {
|
|
6280
6441
|
"description": "Common mixture: 0 idle cutoff, 1 full rich (default).",
|
|
6281
6442
|
"type": "number",
|
|
@@ -6436,6 +6597,20 @@ Required: `velocity`, `yaw`, `pitch`, `roll`, `pitchRate`, `rollRate`, `rpm`, `r
|
|
|
6436
6597
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6437
6598
|
"type": "object",
|
|
6438
6599
|
"properties": {
|
|
6600
|
+
"actuators": {
|
|
6601
|
+
"description": "Current mechanism positions and cycle phases, from zero to one.",
|
|
6602
|
+
"type": "object",
|
|
6603
|
+
"propertyNames": {
|
|
6604
|
+
"type": "string",
|
|
6605
|
+
"maxLength": 64,
|
|
6606
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
6607
|
+
},
|
|
6608
|
+
"additionalProperties": {
|
|
6609
|
+
"type": "number",
|
|
6610
|
+
"minimum": 0,
|
|
6611
|
+
"maximum": 1
|
|
6612
|
+
}
|
|
6613
|
+
},
|
|
6439
6614
|
"damage": {
|
|
6440
6615
|
"description": "Persistent section integrity and separation, keyed by collision part id.",
|
|
6441
6616
|
"type": "object",
|
|
@@ -6598,7 +6773,7 @@ Required: `velocity`, `yaw`, `pitch`, `roll`, `pitchRate`, `rollRate`, `rpm`, `r
|
|
|
6598
6773
|
"maximum": 1
|
|
6599
6774
|
},
|
|
6600
6775
|
"gearPosition": {
|
|
6601
|
-
"description": "
|
|
6776
|
+
"description": "Landing gear: 0 up and locked, 1 down and locked, between them in transit. Fixed undercarriages stay down.",
|
|
6602
6777
|
"type": "number",
|
|
6603
6778
|
"minimum": 0,
|
|
6604
6779
|
"maximum": 1
|
|
@@ -8201,132 +8376,41 @@ Required: `tweens`
|
|
|
8201
8376
|
|
|
8202
8377
|
</details>
|
|
8203
8378
|
|
|
8204
|
-
## Owner: kernel/
|
|
8205
|
-
|
|
8206
|
-
### `collider`
|
|
8207
|
-
|
|
8208
|
-
2.5D kinematic collider (circle or XZ AABB) with layer/mask bitmasks.
|
|
8379
|
+
## Owner: kernel/glass
|
|
8209
8380
|
|
|
8210
|
-
|
|
8381
|
+
### `glass`
|
|
8211
8382
|
|
|
8212
|
-
|
|
8213
|
-
{
|
|
8214
|
-
"shape": "circle",
|
|
8215
|
-
"radius": 0.5,
|
|
8216
|
-
"layer": 1,
|
|
8217
|
-
"mask": 1
|
|
8218
|
-
}
|
|
8219
|
-
```
|
|
8383
|
+
Breakable glass surfaces with metric geometry, material fracture and independent frame/interlayer retention.
|
|
8220
8384
|
|
|
8221
|
-
|
|
8222
|
-
<summary>JSON Schema</summary>
|
|
8385
|
+
Required: `surfaces`
|
|
8223
8386
|
|
|
8224
8387
|
```json
|
|
8225
8388
|
{
|
|
8226
|
-
"
|
|
8227
|
-
"oneOf": [
|
|
8389
|
+
"surfaces": [
|
|
8228
8390
|
{
|
|
8229
|
-
"
|
|
8230
|
-
"
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
},
|
|
8236
|
-
"radius": {
|
|
8237
|
-
"type": "number",
|
|
8238
|
-
"exclusiveMinimum": 0,
|
|
8239
|
-
"description": "Circle radius in meters (default 0.5)."
|
|
8240
|
-
},
|
|
8241
|
-
"layer": {
|
|
8242
|
-
"type": "integer",
|
|
8243
|
-
"minimum": 0,
|
|
8244
|
-
"maximum": 4294967295,
|
|
8245
|
-
"description": "Bitmask of collision layers this collider belongs to; a collides with b when (a.mask & b.layer) or (b.mask & a.layer) is non-zero."
|
|
8246
|
-
},
|
|
8247
|
-
"mask": {
|
|
8248
|
-
"type": "integer",
|
|
8249
|
-
"minimum": 0,
|
|
8250
|
-
"maximum": 4294967295,
|
|
8251
|
-
"description": "Bitmask of layers this collider collides with (see layer for the rule)."
|
|
8252
|
-
},
|
|
8253
|
-
"isStatic": {
|
|
8254
|
-
"type": "boolean",
|
|
8255
|
-
"description": "Static colliders never move and are never pushed by other bodies."
|
|
8256
|
-
}
|
|
8257
|
-
},
|
|
8258
|
-
"required": [
|
|
8259
|
-
"shape",
|
|
8260
|
-
"layer",
|
|
8261
|
-
"mask"
|
|
8391
|
+
"id": "windshield",
|
|
8392
|
+
"material": "laminated",
|
|
8393
|
+
"center": [
|
|
8394
|
+
0,
|
|
8395
|
+
1.2,
|
|
8396
|
+
0.8
|
|
8262
8397
|
],
|
|
8263
|
-
"
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
"shape": {
|
|
8269
|
-
"type": "string",
|
|
8270
|
-
"const": "aabb",
|
|
8271
|
-
"description": "Axis-aligned box collider in the XZ plane."
|
|
8272
|
-
},
|
|
8273
|
-
"halfExtents": {
|
|
8274
|
-
"minItems": 2,
|
|
8275
|
-
"maxItems": 2,
|
|
8276
|
-
"type": "array",
|
|
8277
|
-
"items": {
|
|
8278
|
-
"type": "number",
|
|
8279
|
-
"exclusiveMinimum": 0
|
|
8280
|
-
},
|
|
8281
|
-
"description": "Half-extents [x, z] in meters of the box in the XZ plane (2.5D; default [0.5, 0.5])."
|
|
8282
|
-
},
|
|
8283
|
-
"layer": {
|
|
8284
|
-
"type": "integer",
|
|
8285
|
-
"minimum": 0,
|
|
8286
|
-
"maximum": 4294967295,
|
|
8287
|
-
"description": "Bitmask of collision layers this collider belongs to; a collides with b when (a.mask & b.layer) or (b.mask & a.layer) is non-zero."
|
|
8288
|
-
},
|
|
8289
|
-
"mask": {
|
|
8290
|
-
"type": "integer",
|
|
8291
|
-
"minimum": 0,
|
|
8292
|
-
"maximum": 4294967295,
|
|
8293
|
-
"description": "Bitmask of layers this collider collides with (see layer for the rule)."
|
|
8294
|
-
},
|
|
8295
|
-
"isStatic": {
|
|
8296
|
-
"type": "boolean",
|
|
8297
|
-
"description": "Static colliders never move and are never pushed by other bodies."
|
|
8298
|
-
}
|
|
8299
|
-
},
|
|
8300
|
-
"required": [
|
|
8301
|
-
"shape",
|
|
8302
|
-
"layer",
|
|
8303
|
-
"mask"
|
|
8398
|
+
"rotation": [
|
|
8399
|
+
0,
|
|
8400
|
+
0,
|
|
8401
|
+
0,
|
|
8402
|
+
1
|
|
8304
8403
|
],
|
|
8305
|
-
"
|
|
8404
|
+
"size": [
|
|
8405
|
+
1.4,
|
|
8406
|
+
0.7
|
|
8407
|
+
],
|
|
8408
|
+
"thickness": 0.005
|
|
8306
8409
|
}
|
|
8307
8410
|
]
|
|
8308
8411
|
}
|
|
8309
8412
|
```
|
|
8310
8413
|
|
|
8311
|
-
</details>
|
|
8312
|
-
|
|
8313
|
-
### `kinematicBody`
|
|
8314
|
-
|
|
8315
|
-
Velocity-driven body for the kinematic collision layer.
|
|
8316
|
-
|
|
8317
|
-
Required: `vel`, `slide`
|
|
8318
|
-
|
|
8319
|
-
```json
|
|
8320
|
-
{
|
|
8321
|
-
"vel": [
|
|
8322
|
-
0,
|
|
8323
|
-
0,
|
|
8324
|
-
0
|
|
8325
|
-
],
|
|
8326
|
-
"slide": true
|
|
8327
|
-
}
|
|
8328
|
-
```
|
|
8329
|
-
|
|
8330
8414
|
<details>
|
|
8331
8415
|
<summary>JSON Schema</summary>
|
|
8332
8416
|
|
|
@@ -8335,31 +8419,479 @@ Required: `vel`, `slide`
|
|
|
8335
8419
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8336
8420
|
"type": "object",
|
|
8337
8421
|
"properties": {
|
|
8338
|
-
"
|
|
8339
|
-
"minItems":
|
|
8340
|
-
"maxItems":
|
|
8422
|
+
"surfaces": {
|
|
8423
|
+
"minItems": 1,
|
|
8424
|
+
"maxItems": 64,
|
|
8341
8425
|
"type": "array",
|
|
8342
8426
|
"items": {
|
|
8343
|
-
"type": "
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8427
|
+
"type": "object",
|
|
8428
|
+
"properties": {
|
|
8429
|
+
"id": {
|
|
8430
|
+
"type": "string",
|
|
8431
|
+
"minLength": 1,
|
|
8432
|
+
"maxLength": 64,
|
|
8433
|
+
"description": "Stable pane id, unique on its owner."
|
|
8434
|
+
},
|
|
8435
|
+
"material": {
|
|
8436
|
+
"type": "string",
|
|
8437
|
+
"enum": [
|
|
8438
|
+
"laminated",
|
|
8439
|
+
"tempered",
|
|
8440
|
+
"annealed"
|
|
8441
|
+
],
|
|
8442
|
+
"description": "Laminated retains cracked glass; tempered releases granules; annealed releases larger shards."
|
|
8443
|
+
},
|
|
8444
|
+
"center": {
|
|
8445
|
+
"type": "array",
|
|
8446
|
+
"prefixItems": [
|
|
8447
|
+
{
|
|
8448
|
+
"type": "number"
|
|
8449
|
+
},
|
|
8450
|
+
{
|
|
8451
|
+
"type": "number"
|
|
8452
|
+
},
|
|
8453
|
+
{
|
|
8454
|
+
"type": "number"
|
|
8455
|
+
}
|
|
8456
|
+
],
|
|
8457
|
+
"items": false,
|
|
8458
|
+
"minItems": 3,
|
|
8459
|
+
"maxItems": 3,
|
|
8460
|
+
"description": "Pane center in owner coordinates, meters."
|
|
8461
|
+
},
|
|
8462
|
+
"rotation": {
|
|
8463
|
+
"type": "array",
|
|
8464
|
+
"prefixItems": [
|
|
8465
|
+
{
|
|
8466
|
+
"type": "number"
|
|
8467
|
+
},
|
|
8468
|
+
{
|
|
8469
|
+
"type": "number"
|
|
8470
|
+
},
|
|
8471
|
+
{
|
|
8472
|
+
"type": "number"
|
|
8473
|
+
},
|
|
8474
|
+
{
|
|
8475
|
+
"type": "number"
|
|
8476
|
+
}
|
|
8477
|
+
],
|
|
8478
|
+
"items": false,
|
|
8479
|
+
"minItems": 4,
|
|
8480
|
+
"maxItems": 4,
|
|
8481
|
+
"description": "Pane XY orientation in owner coordinates, unit quaternion."
|
|
8482
|
+
},
|
|
8483
|
+
"size": {
|
|
8484
|
+
"type": "array",
|
|
8485
|
+
"prefixItems": [
|
|
8486
|
+
{
|
|
8487
|
+
"type": "number",
|
|
8488
|
+
"exclusiveMinimum": 0
|
|
8489
|
+
},
|
|
8490
|
+
{
|
|
8491
|
+
"type": "number",
|
|
8492
|
+
"exclusiveMinimum": 0
|
|
8493
|
+
}
|
|
8494
|
+
],
|
|
8495
|
+
"items": false,
|
|
8496
|
+
"minItems": 2,
|
|
8497
|
+
"maxItems": 2,
|
|
8498
|
+
"description": "Width and height in meters."
|
|
8499
|
+
},
|
|
8500
|
+
"thickness": {
|
|
8501
|
+
"type": "number",
|
|
8502
|
+
"exclusiveMinimum": 0,
|
|
8503
|
+
"description": "Total glass thickness, meters; interlayer thickness excluded."
|
|
8504
|
+
},
|
|
8505
|
+
"density": {
|
|
8506
|
+
"description": "Glass density, kg/m³; default 2500.",
|
|
8507
|
+
"type": "number",
|
|
8508
|
+
"exclusiveMinimum": 0
|
|
8509
|
+
},
|
|
8510
|
+
"strength": {
|
|
8511
|
+
"description": "Effective bending failure stress, Pa. Defaults: tempered 120e6, others 45e6. Simulation tuning, not certification.",
|
|
8512
|
+
"type": "number",
|
|
8513
|
+
"exclusiveMinimum": 0
|
|
8514
|
+
},
|
|
8515
|
+
"fractureEnergy": {
|
|
8516
|
+
"description": "Post-initiation fracture work, J/m²; default 80.",
|
|
8517
|
+
"type": "number",
|
|
8518
|
+
"exclusiveMinimum": 0
|
|
8519
|
+
},
|
|
8520
|
+
"retentionForce": {
|
|
8521
|
+
"description": "Frame/interlayer failure force, N; default 4000 times pane perimeter in meters.",
|
|
8522
|
+
"type": "number",
|
|
8523
|
+
"exclusiveMinimum": 0
|
|
8524
|
+
},
|
|
8525
|
+
"retentionEnergy": {
|
|
8526
|
+
"description": "Work to lose frame/interlayer retention, J; default 3000 times area in m².",
|
|
8527
|
+
"type": "number",
|
|
8528
|
+
"exclusiveMinimum": 0
|
|
8529
|
+
},
|
|
8530
|
+
"nodes": {
|
|
8531
|
+
"description": "Dedicated glass mesh/group names; omit for a generated rectangular pane. Never bind a whole vehicle or a shared body mesh.",
|
|
8532
|
+
"minItems": 1,
|
|
8533
|
+
"type": "array",
|
|
8534
|
+
"items": {
|
|
8535
|
+
"type": "string",
|
|
8536
|
+
"minLength": 1
|
|
8537
|
+
}
|
|
8538
|
+
}
|
|
8539
|
+
},
|
|
8540
|
+
"required": [
|
|
8541
|
+
"id",
|
|
8542
|
+
"material",
|
|
8543
|
+
"center",
|
|
8544
|
+
"rotation",
|
|
8545
|
+
"size",
|
|
8546
|
+
"thickness"
|
|
8547
|
+
],
|
|
8548
|
+
"additionalProperties": false
|
|
8549
|
+
},
|
|
8550
|
+
"description": "Physical glass panes and their model bindings."
|
|
8551
|
+
},
|
|
8552
|
+
"crashPulseSeconds": {
|
|
8553
|
+
"description": "Duration of the vehicle crash pulse, seconds; default 0.06, independent of tick rate.",
|
|
8554
|
+
"type": "number",
|
|
8555
|
+
"exclusiveMinimum": 0,
|
|
8556
|
+
"maximum": 1
|
|
8557
|
+
}
|
|
8558
|
+
},
|
|
8559
|
+
"required": [
|
|
8560
|
+
"surfaces"
|
|
8561
|
+
],
|
|
8562
|
+
"additionalProperties": false
|
|
8563
|
+
}
|
|
8564
|
+
```
|
|
8565
|
+
|
|
8566
|
+
</details>
|
|
8567
|
+
|
|
8568
|
+
### `glassState`
|
|
8569
|
+
|
|
8570
|
+
Persistent glass fracture, retention and release state. Missing panes are intact; remove the component to repair.
|
|
8571
|
+
|
|
8572
|
+
Required: `surfaces`
|
|
8573
|
+
|
|
8574
|
+
```json
|
|
8575
|
+
{
|
|
8576
|
+
"surfaces": {}
|
|
8577
|
+
}
|
|
8578
|
+
```
|
|
8579
|
+
|
|
8580
|
+
<details>
|
|
8581
|
+
<summary>JSON Schema</summary>
|
|
8582
|
+
|
|
8583
|
+
```json
|
|
8584
|
+
{
|
|
8585
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8586
|
+
"type": "object",
|
|
8587
|
+
"properties": {
|
|
8588
|
+
"surfaces": {
|
|
8589
|
+
"type": "object",
|
|
8590
|
+
"propertyNames": {
|
|
8591
|
+
"type": "string",
|
|
8592
|
+
"minLength": 1
|
|
8593
|
+
},
|
|
8594
|
+
"additionalProperties": {
|
|
8595
|
+
"type": "object",
|
|
8596
|
+
"properties": {
|
|
8597
|
+
"fracture": {
|
|
8598
|
+
"type": "string",
|
|
8599
|
+
"enum": [
|
|
8600
|
+
"intact",
|
|
8601
|
+
"cracked",
|
|
8602
|
+
"shattered"
|
|
8603
|
+
]
|
|
8604
|
+
},
|
|
8605
|
+
"retained": {
|
|
8606
|
+
"type": "boolean"
|
|
8607
|
+
},
|
|
8608
|
+
"damage": {
|
|
8609
|
+
"type": "number",
|
|
8610
|
+
"minimum": 0,
|
|
8611
|
+
"maximum": 1
|
|
8612
|
+
},
|
|
8613
|
+
"retentionDamage": {
|
|
8614
|
+
"type": "number",
|
|
8615
|
+
"minimum": 0,
|
|
8616
|
+
"maximum": 1
|
|
8617
|
+
},
|
|
8618
|
+
"peakStress": {
|
|
8619
|
+
"type": "number",
|
|
8620
|
+
"minimum": 0,
|
|
8621
|
+
"description": "Largest resolved bending stress in Pa."
|
|
8622
|
+
},
|
|
8623
|
+
"point": {
|
|
8624
|
+
"type": "array",
|
|
8625
|
+
"prefixItems": [
|
|
8626
|
+
{
|
|
8627
|
+
"type": "number"
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
"type": "number"
|
|
8631
|
+
}
|
|
8632
|
+
],
|
|
8633
|
+
"items": false,
|
|
8634
|
+
"minItems": 2,
|
|
8635
|
+
"maxItems": 2
|
|
8636
|
+
},
|
|
8637
|
+
"release": {
|
|
8638
|
+
"description": "Snapshot-safe initial world pose, velocity and simulation time for cosmetic debris.",
|
|
8639
|
+
"type": "object",
|
|
8640
|
+
"properties": {
|
|
8641
|
+
"time": {
|
|
8642
|
+
"type": "number",
|
|
8643
|
+
"minimum": 0
|
|
8644
|
+
},
|
|
8645
|
+
"position": {
|
|
8646
|
+
"type": "array",
|
|
8647
|
+
"prefixItems": [
|
|
8648
|
+
{
|
|
8649
|
+
"type": "number"
|
|
8650
|
+
},
|
|
8651
|
+
{
|
|
8652
|
+
"type": "number"
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"type": "number"
|
|
8656
|
+
}
|
|
8657
|
+
],
|
|
8658
|
+
"items": false,
|
|
8659
|
+
"minItems": 3,
|
|
8660
|
+
"maxItems": 3
|
|
8661
|
+
},
|
|
8662
|
+
"rotation": {
|
|
8663
|
+
"type": "array",
|
|
8664
|
+
"prefixItems": [
|
|
8665
|
+
{
|
|
8666
|
+
"type": "number"
|
|
8667
|
+
},
|
|
8668
|
+
{
|
|
8669
|
+
"type": "number"
|
|
8670
|
+
},
|
|
8671
|
+
{
|
|
8672
|
+
"type": "number"
|
|
8673
|
+
},
|
|
8674
|
+
{
|
|
8675
|
+
"type": "number"
|
|
8676
|
+
}
|
|
8677
|
+
],
|
|
8678
|
+
"items": false,
|
|
8679
|
+
"minItems": 4,
|
|
8680
|
+
"maxItems": 4
|
|
8681
|
+
},
|
|
8682
|
+
"velocity": {
|
|
8683
|
+
"type": "array",
|
|
8684
|
+
"prefixItems": [
|
|
8685
|
+
{
|
|
8686
|
+
"type": "number"
|
|
8687
|
+
},
|
|
8688
|
+
{
|
|
8689
|
+
"type": "number"
|
|
8690
|
+
},
|
|
8691
|
+
{
|
|
8692
|
+
"type": "number"
|
|
8693
|
+
}
|
|
8694
|
+
],
|
|
8695
|
+
"items": false,
|
|
8696
|
+
"minItems": 3,
|
|
8697
|
+
"maxItems": 3
|
|
8698
|
+
},
|
|
8699
|
+
"fragmentSpeed": {
|
|
8700
|
+
"description": "Energy-limited cosmetic fragment dispersion speed, m/s.",
|
|
8701
|
+
"type": "number",
|
|
8702
|
+
"minimum": 0
|
|
8703
|
+
}
|
|
8704
|
+
},
|
|
8705
|
+
"required": [
|
|
8706
|
+
"time",
|
|
8707
|
+
"position",
|
|
8708
|
+
"rotation",
|
|
8709
|
+
"velocity"
|
|
8710
|
+
],
|
|
8711
|
+
"additionalProperties": false
|
|
8712
|
+
}
|
|
8713
|
+
},
|
|
8714
|
+
"required": [
|
|
8715
|
+
"fracture",
|
|
8716
|
+
"retained",
|
|
8717
|
+
"damage",
|
|
8718
|
+
"retentionDamage",
|
|
8719
|
+
"peakStress",
|
|
8720
|
+
"point"
|
|
8721
|
+
],
|
|
8722
|
+
"additionalProperties": false
|
|
8723
|
+
},
|
|
8724
|
+
"description": "Per-pane fracture, retention and release state keyed by surface id."
|
|
8725
|
+
}
|
|
8726
|
+
},
|
|
8727
|
+
"required": [
|
|
8728
|
+
"surfaces"
|
|
8729
|
+
],
|
|
8730
|
+
"additionalProperties": false
|
|
8731
|
+
}
|
|
8732
|
+
```
|
|
8733
|
+
|
|
8734
|
+
</details>
|
|
8735
|
+
|
|
8736
|
+
## Owner: kernel/kinematics
|
|
8737
|
+
|
|
8738
|
+
### `collider`
|
|
8739
|
+
|
|
8740
|
+
2.5D kinematic collider (circle or XZ AABB) with layer/mask bitmasks.
|
|
8741
|
+
|
|
8742
|
+
Required: (shape="circle": `shape`, `layer`, `mask`) or (shape="aabb": `shape`, `layer`, `mask`)
|
|
8743
|
+
|
|
8744
|
+
```json
|
|
8745
|
+
{
|
|
8746
|
+
"shape": "circle",
|
|
8747
|
+
"radius": 0.5,
|
|
8748
|
+
"layer": 1,
|
|
8749
|
+
"mask": 1
|
|
8750
|
+
}
|
|
8751
|
+
```
|
|
8752
|
+
|
|
8753
|
+
<details>
|
|
8754
|
+
<summary>JSON Schema</summary>
|
|
8755
|
+
|
|
8756
|
+
```json
|
|
8757
|
+
{
|
|
8758
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8759
|
+
"oneOf": [
|
|
8760
|
+
{
|
|
8761
|
+
"type": "object",
|
|
8762
|
+
"properties": {
|
|
8763
|
+
"shape": {
|
|
8764
|
+
"type": "string",
|
|
8765
|
+
"const": "circle",
|
|
8766
|
+
"description": "Circle collider in the XZ plane."
|
|
8767
|
+
},
|
|
8768
|
+
"radius": {
|
|
8769
|
+
"type": "number",
|
|
8770
|
+
"exclusiveMinimum": 0,
|
|
8771
|
+
"description": "Circle radius in meters (default 0.5)."
|
|
8772
|
+
},
|
|
8773
|
+
"layer": {
|
|
8774
|
+
"type": "integer",
|
|
8775
|
+
"minimum": 0,
|
|
8776
|
+
"maximum": 4294967295,
|
|
8777
|
+
"description": "Bitmask of collision layers this collider belongs to; a collides with b when (a.mask & b.layer) or (b.mask & a.layer) is non-zero."
|
|
8778
|
+
},
|
|
8779
|
+
"mask": {
|
|
8780
|
+
"type": "integer",
|
|
8781
|
+
"minimum": 0,
|
|
8782
|
+
"maximum": 4294967295,
|
|
8783
|
+
"description": "Bitmask of layers this collider collides with (see layer for the rule)."
|
|
8784
|
+
},
|
|
8785
|
+
"isStatic": {
|
|
8786
|
+
"type": "boolean",
|
|
8787
|
+
"description": "Static colliders never move and are never pushed by other bodies."
|
|
8788
|
+
}
|
|
8789
|
+
},
|
|
8790
|
+
"required": [
|
|
8791
|
+
"shape",
|
|
8792
|
+
"layer",
|
|
8793
|
+
"mask"
|
|
8794
|
+
],
|
|
8795
|
+
"additionalProperties": false
|
|
8796
|
+
},
|
|
8797
|
+
{
|
|
8798
|
+
"type": "object",
|
|
8799
|
+
"properties": {
|
|
8800
|
+
"shape": {
|
|
8801
|
+
"type": "string",
|
|
8802
|
+
"const": "aabb",
|
|
8803
|
+
"description": "Axis-aligned box collider in the XZ plane."
|
|
8804
|
+
},
|
|
8805
|
+
"halfExtents": {
|
|
8806
|
+
"minItems": 2,
|
|
8807
|
+
"maxItems": 2,
|
|
8808
|
+
"type": "array",
|
|
8809
|
+
"items": {
|
|
8810
|
+
"type": "number",
|
|
8811
|
+
"exclusiveMinimum": 0
|
|
8812
|
+
},
|
|
8813
|
+
"description": "Half-extents [x, z] in meters of the box in the XZ plane (2.5D; default [0.5, 0.5])."
|
|
8814
|
+
},
|
|
8815
|
+
"layer": {
|
|
8816
|
+
"type": "integer",
|
|
8817
|
+
"minimum": 0,
|
|
8818
|
+
"maximum": 4294967295,
|
|
8819
|
+
"description": "Bitmask of collision layers this collider belongs to; a collides with b when (a.mask & b.layer) or (b.mask & a.layer) is non-zero."
|
|
8820
|
+
},
|
|
8821
|
+
"mask": {
|
|
8822
|
+
"type": "integer",
|
|
8823
|
+
"minimum": 0,
|
|
8824
|
+
"maximum": 4294967295,
|
|
8825
|
+
"description": "Bitmask of layers this collider collides with (see layer for the rule)."
|
|
8826
|
+
},
|
|
8827
|
+
"isStatic": {
|
|
8828
|
+
"type": "boolean",
|
|
8829
|
+
"description": "Static colliders never move and are never pushed by other bodies."
|
|
8830
|
+
}
|
|
8831
|
+
},
|
|
8832
|
+
"required": [
|
|
8833
|
+
"shape",
|
|
8834
|
+
"layer",
|
|
8835
|
+
"mask"
|
|
8836
|
+
],
|
|
8837
|
+
"additionalProperties": false
|
|
8838
|
+
}
|
|
8839
|
+
]
|
|
8840
|
+
}
|
|
8841
|
+
```
|
|
8842
|
+
|
|
8843
|
+
</details>
|
|
8844
|
+
|
|
8845
|
+
### `kinematicBody`
|
|
8846
|
+
|
|
8847
|
+
Velocity-driven body for the kinematic collision layer.
|
|
8848
|
+
|
|
8849
|
+
Required: `vel`, `slide`
|
|
8850
|
+
|
|
8851
|
+
```json
|
|
8852
|
+
{
|
|
8853
|
+
"vel": [
|
|
8854
|
+
0,
|
|
8855
|
+
0,
|
|
8856
|
+
0
|
|
8857
|
+
],
|
|
8858
|
+
"slide": true
|
|
8859
|
+
}
|
|
8860
|
+
```
|
|
8861
|
+
|
|
8862
|
+
<details>
|
|
8863
|
+
<summary>JSON Schema</summary>
|
|
8864
|
+
|
|
8865
|
+
```json
|
|
8866
|
+
{
|
|
8867
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8868
|
+
"type": "object",
|
|
8869
|
+
"properties": {
|
|
8870
|
+
"vel": {
|
|
8871
|
+
"minItems": 3,
|
|
8872
|
+
"maxItems": 3,
|
|
8873
|
+
"type": "array",
|
|
8874
|
+
"items": {
|
|
8875
|
+
"type": "number"
|
|
8876
|
+
},
|
|
8877
|
+
"description": "Velocity [x, y, z] in meters per second, integrated each tick (dt = 1/tickRate)."
|
|
8878
|
+
},
|
|
8879
|
+
"slide": {
|
|
8880
|
+
"type": "boolean",
|
|
8881
|
+
"description": "When true, blocked motion slides along the contact surface instead of stopping."
|
|
8882
|
+
}
|
|
8883
|
+
},
|
|
8884
|
+
"required": [
|
|
8885
|
+
"vel",
|
|
8886
|
+
"slide"
|
|
8887
|
+
],
|
|
8888
|
+
"additionalProperties": false
|
|
8889
|
+
}
|
|
8890
|
+
```
|
|
8891
|
+
|
|
8892
|
+
</details>
|
|
8893
|
+
|
|
8894
|
+
## Owner: kernel/vehicles
|
|
8363
8895
|
|
|
8364
8896
|
### `mountable`
|
|
8365
8897
|
|
|
@@ -8605,6 +9137,168 @@ Required: `kind`, `color`, `spec`, `visual`
|
|
|
8605
9137
|
"spec": {
|
|
8606
9138
|
"type": "object",
|
|
8607
9139
|
"properties": {
|
|
9140
|
+
"collisionParts": {
|
|
9141
|
+
"description": "Independent wheels, panels and engines: model-space sphere probes, joint strength in m/s and GLB node ownership.",
|
|
9142
|
+
"maxItems": 64,
|
|
9143
|
+
"type": "array",
|
|
9144
|
+
"items": {
|
|
9145
|
+
"type": "object",
|
|
9146
|
+
"properties": {
|
|
9147
|
+
"id": {
|
|
9148
|
+
"type": "string",
|
|
9149
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$",
|
|
9150
|
+
"description": "Unique part id used by damage and debris state."
|
|
9151
|
+
},
|
|
9152
|
+
"role": {
|
|
9153
|
+
"type": "string",
|
|
9154
|
+
"enum": [
|
|
9155
|
+
"frontWheel",
|
|
9156
|
+
"rearWheel",
|
|
9157
|
+
"panel",
|
|
9158
|
+
"engine"
|
|
9159
|
+
],
|
|
9160
|
+
"description": "Wheel axle, exterior panel or drivetrain role."
|
|
9161
|
+
},
|
|
9162
|
+
"hinge": {
|
|
9163
|
+
"description": "Panel hinge driven by the named vehicle actuator.",
|
|
9164
|
+
"type": "object",
|
|
9165
|
+
"properties": {
|
|
9166
|
+
"pivot": {
|
|
9167
|
+
"minItems": 3,
|
|
9168
|
+
"maxItems": 3,
|
|
9169
|
+
"type": "array",
|
|
9170
|
+
"items": {
|
|
9171
|
+
"type": "number"
|
|
9172
|
+
},
|
|
9173
|
+
"description": "Hinge pivot in model coordinates, meters."
|
|
9174
|
+
},
|
|
9175
|
+
"axis": {
|
|
9176
|
+
"minItems": 3,
|
|
9177
|
+
"maxItems": 3,
|
|
9178
|
+
"type": "array",
|
|
9179
|
+
"items": {
|
|
9180
|
+
"type": "number"
|
|
9181
|
+
},
|
|
9182
|
+
"description": "Unit hinge axis in model coordinates."
|
|
9183
|
+
},
|
|
9184
|
+
"angle": {
|
|
9185
|
+
"type": "number",
|
|
9186
|
+
"description": "Hinge rotation in radians at full actuator travel."
|
|
9187
|
+
},
|
|
9188
|
+
"actuator": {
|
|
9189
|
+
"type": "string",
|
|
9190
|
+
"minLength": 1,
|
|
9191
|
+
"description": "Vehicle actuator id supplying hinge travel."
|
|
9192
|
+
}
|
|
9193
|
+
},
|
|
9194
|
+
"required": [
|
|
9195
|
+
"pivot",
|
|
9196
|
+
"axis",
|
|
9197
|
+
"angle",
|
|
9198
|
+
"actuator"
|
|
9199
|
+
],
|
|
9200
|
+
"additionalProperties": false
|
|
9201
|
+
},
|
|
9202
|
+
"center": {
|
|
9203
|
+
"minItems": 3,
|
|
9204
|
+
"maxItems": 3,
|
|
9205
|
+
"type": "array",
|
|
9206
|
+
"items": {
|
|
9207
|
+
"type": "number"
|
|
9208
|
+
},
|
|
9209
|
+
"description": "Debris origin in model coordinates, meters."
|
|
9210
|
+
},
|
|
9211
|
+
"probes": {
|
|
9212
|
+
"minItems": 1,
|
|
9213
|
+
"maxItems": 64,
|
|
9214
|
+
"type": "array",
|
|
9215
|
+
"items": {
|
|
9216
|
+
"minItems": 3,
|
|
9217
|
+
"maxItems": 3,
|
|
9218
|
+
"type": "array",
|
|
9219
|
+
"items": {
|
|
9220
|
+
"type": "number"
|
|
9221
|
+
}
|
|
9222
|
+
},
|
|
9223
|
+
"description": "Sphere centers in model coordinates, meters."
|
|
9224
|
+
},
|
|
9225
|
+
"radius": {
|
|
9226
|
+
"type": "number",
|
|
9227
|
+
"exclusiveMinimum": 0,
|
|
9228
|
+
"description": "Probe and debris collision radius, meters."
|
|
9229
|
+
},
|
|
9230
|
+
"massFraction": {
|
|
9231
|
+
"type": "number",
|
|
9232
|
+
"exclusiveMinimum": 0,
|
|
9233
|
+
"maximum": 1,
|
|
9234
|
+
"description": "Share of the original mass removed on separation."
|
|
9235
|
+
},
|
|
9236
|
+
"breakSpeed": {
|
|
9237
|
+
"type": "number",
|
|
9238
|
+
"exclusiveMinimum": 0,
|
|
9239
|
+
"description": "Normal impact speed that breaks an intact joint, m/s."
|
|
9240
|
+
},
|
|
9241
|
+
"nodes": {
|
|
9242
|
+
"minItems": 1,
|
|
9243
|
+
"type": "array",
|
|
9244
|
+
"items": {
|
|
9245
|
+
"type": "string",
|
|
9246
|
+
"minLength": 1
|
|
9247
|
+
},
|
|
9248
|
+
"description": "Exact GLB node names owned by this part."
|
|
9249
|
+
}
|
|
9250
|
+
},
|
|
9251
|
+
"required": [
|
|
9252
|
+
"id",
|
|
9253
|
+
"role",
|
|
9254
|
+
"center",
|
|
9255
|
+
"probes",
|
|
9256
|
+
"radius",
|
|
9257
|
+
"massFraction",
|
|
9258
|
+
"breakSpeed",
|
|
9259
|
+
"nodes"
|
|
9260
|
+
],
|
|
9261
|
+
"additionalProperties": false
|
|
9262
|
+
}
|
|
9263
|
+
},
|
|
9264
|
+
"actuators": {
|
|
9265
|
+
"description": "External actuators setting.",
|
|
9266
|
+
"type": "object",
|
|
9267
|
+
"propertyNames": {
|
|
9268
|
+
"type": "string",
|
|
9269
|
+
"maxLength": 64,
|
|
9270
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
9271
|
+
},
|
|
9272
|
+
"additionalProperties": {
|
|
9273
|
+
"type": "object",
|
|
9274
|
+
"properties": {
|
|
9275
|
+
"seconds": {
|
|
9276
|
+
"type": "number",
|
|
9277
|
+
"minimum": 0,
|
|
9278
|
+
"description": "Seconds for full travel or a full cycle."
|
|
9279
|
+
},
|
|
9280
|
+
"initial": {
|
|
9281
|
+
"description": "Rest position or phase; defaults to zero.",
|
|
9282
|
+
"type": "number",
|
|
9283
|
+
"minimum": 0,
|
|
9284
|
+
"maximum": 1
|
|
9285
|
+
},
|
|
9286
|
+
"mode": {
|
|
9287
|
+
"description": "Position by default. Cycles park when off; latches cannot reverse.",
|
|
9288
|
+
"type": "string",
|
|
9289
|
+
"enum": [
|
|
9290
|
+
"position",
|
|
9291
|
+
"cycle",
|
|
9292
|
+
"latch"
|
|
9293
|
+
]
|
|
9294
|
+
}
|
|
9295
|
+
},
|
|
9296
|
+
"required": [
|
|
9297
|
+
"seconds"
|
|
9298
|
+
],
|
|
9299
|
+
"additionalProperties": false
|
|
9300
|
+
}
|
|
9301
|
+
},
|
|
8608
9302
|
"label": {
|
|
8609
9303
|
"type": "string",
|
|
8610
9304
|
"minLength": 1,
|
|
@@ -9484,6 +10178,27 @@ Required: `throttle`, `steering`, `brake`
|
|
|
9484
10178
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
9485
10179
|
"type": "object",
|
|
9486
10180
|
"properties": {
|
|
10181
|
+
"actuators": {
|
|
10182
|
+
"description": "Mechanism targets from zero to one, or on/off selections.",
|
|
10183
|
+
"type": "object",
|
|
10184
|
+
"propertyNames": {
|
|
10185
|
+
"type": "string",
|
|
10186
|
+
"maxLength": 64,
|
|
10187
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
10188
|
+
},
|
|
10189
|
+
"additionalProperties": {
|
|
10190
|
+
"anyOf": [
|
|
10191
|
+
{
|
|
10192
|
+
"type": "number",
|
|
10193
|
+
"minimum": 0,
|
|
10194
|
+
"maximum": 1
|
|
10195
|
+
},
|
|
10196
|
+
{
|
|
10197
|
+
"type": "boolean"
|
|
10198
|
+
}
|
|
10199
|
+
]
|
|
10200
|
+
}
|
|
10201
|
+
},
|
|
9487
10202
|
"throttle": {
|
|
9488
10203
|
"type": "number",
|
|
9489
10204
|
"minimum": -1,
|
|
@@ -9544,6 +10259,110 @@ Required: `speed`, `steer`, `yaw`, `pitch`, `roll`, `vy`, `grounded`, `waitingFo
|
|
|
9544
10259
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
9545
10260
|
"type": "object",
|
|
9546
10261
|
"properties": {
|
|
10262
|
+
"damage": {
|
|
10263
|
+
"description": "Persistent joint integrity and separation, keyed by collision part id.",
|
|
10264
|
+
"type": "object",
|
|
10265
|
+
"propertyNames": {
|
|
10266
|
+
"type": "string"
|
|
10267
|
+
},
|
|
10268
|
+
"additionalProperties": {
|
|
10269
|
+
"type": "object",
|
|
10270
|
+
"properties": {
|
|
10271
|
+
"integrity": {
|
|
10272
|
+
"type": "number",
|
|
10273
|
+
"minimum": 0,
|
|
10274
|
+
"maximum": 1
|
|
10275
|
+
},
|
|
10276
|
+
"detached": {
|
|
10277
|
+
"type": "boolean"
|
|
10278
|
+
}
|
|
10279
|
+
},
|
|
10280
|
+
"required": [
|
|
10281
|
+
"integrity",
|
|
10282
|
+
"detached"
|
|
10283
|
+
],
|
|
10284
|
+
"additionalProperties": false
|
|
10285
|
+
}
|
|
10286
|
+
},
|
|
10287
|
+
"debris": {
|
|
10288
|
+
"description": "Detached parts in world coordinates; expire after 20 simulated seconds without repairing the vehicle.",
|
|
10289
|
+
"maxItems": 64,
|
|
10290
|
+
"type": "array",
|
|
10291
|
+
"items": {
|
|
10292
|
+
"type": "object",
|
|
10293
|
+
"properties": {
|
|
10294
|
+
"part": {
|
|
10295
|
+
"type": "string",
|
|
10296
|
+
"minLength": 1,
|
|
10297
|
+
"description": "Collision part id of the separated geometry."
|
|
10298
|
+
},
|
|
10299
|
+
"pos": {
|
|
10300
|
+
"minItems": 3,
|
|
10301
|
+
"maxItems": 3,
|
|
10302
|
+
"type": "array",
|
|
10303
|
+
"items": {
|
|
10304
|
+
"type": "number"
|
|
10305
|
+
},
|
|
10306
|
+
"description": "Debris origin in world coordinates, meters."
|
|
10307
|
+
},
|
|
10308
|
+
"rot": {
|
|
10309
|
+
"minItems": 4,
|
|
10310
|
+
"maxItems": 4,
|
|
10311
|
+
"type": "array",
|
|
10312
|
+
"items": {
|
|
10313
|
+
"type": "number"
|
|
10314
|
+
},
|
|
10315
|
+
"description": "Debris orientation as a quaternion."
|
|
10316
|
+
},
|
|
10317
|
+
"velocity": {
|
|
10318
|
+
"minItems": 3,
|
|
10319
|
+
"maxItems": 3,
|
|
10320
|
+
"type": "array",
|
|
10321
|
+
"items": {
|
|
10322
|
+
"type": "number"
|
|
10323
|
+
},
|
|
10324
|
+
"description": "World-space linear velocity, m/s."
|
|
10325
|
+
},
|
|
10326
|
+
"angularVelocity": {
|
|
10327
|
+
"minItems": 3,
|
|
10328
|
+
"maxItems": 3,
|
|
10329
|
+
"type": "array",
|
|
10330
|
+
"items": {
|
|
10331
|
+
"type": "number"
|
|
10332
|
+
},
|
|
10333
|
+
"description": "Local angular velocity about X, Y and Z, radians/s."
|
|
10334
|
+
},
|
|
10335
|
+
"age": {
|
|
10336
|
+
"type": "number",
|
|
10337
|
+
"minimum": 0,
|
|
10338
|
+
"description": "Elapsed simulation seconds since separation."
|
|
10339
|
+
}
|
|
10340
|
+
},
|
|
10341
|
+
"required": [
|
|
10342
|
+
"part",
|
|
10343
|
+
"pos",
|
|
10344
|
+
"rot",
|
|
10345
|
+
"velocity",
|
|
10346
|
+
"angularVelocity",
|
|
10347
|
+
"age"
|
|
10348
|
+
],
|
|
10349
|
+
"additionalProperties": false
|
|
10350
|
+
}
|
|
10351
|
+
},
|
|
10352
|
+
"actuators": {
|
|
10353
|
+
"description": "Current mechanism positions and cycle phases, from zero to one.",
|
|
10354
|
+
"type": "object",
|
|
10355
|
+
"propertyNames": {
|
|
10356
|
+
"type": "string",
|
|
10357
|
+
"maxLength": 64,
|
|
10358
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$"
|
|
10359
|
+
},
|
|
10360
|
+
"additionalProperties": {
|
|
10361
|
+
"type": "number",
|
|
10362
|
+
"minimum": 0,
|
|
10363
|
+
"maximum": 1
|
|
10364
|
+
}
|
|
10365
|
+
},
|
|
9547
10366
|
"boosted": {
|
|
9548
10367
|
"description": "Speeds include the 4× travel boost; kernel-owned.",
|
|
9549
10368
|
"type": "boolean"
|
|
@@ -9733,11 +10552,11 @@ Required: none
|
|
|
9733
10552
|
"exclusiveMinimum": 0
|
|
9734
10553
|
},
|
|
9735
10554
|
"clouds": {
|
|
9736
|
-
"description": "World-anchored, wind-advected cloud layer. Does not imply precipitation.",
|
|
10555
|
+
"description": "World-anchored, wind-advected volumetric cloud layer of one type, plus an optional high cirrus layer. Does not imply precipitation.",
|
|
9737
10556
|
"type": "object",
|
|
9738
10557
|
"properties": {
|
|
9739
10558
|
"coverage": {
|
|
9740
|
-
"description": "Sky coverage 0–1, default 0
|
|
10559
|
+
"description": "Sky coverage 0–1, default 0: the share of the sky the layer covers; 1 closes it.",
|
|
9741
10560
|
"type": "number",
|
|
9742
10561
|
"minimum": 0,
|
|
9743
10562
|
"maximum": 1
|
|
@@ -9753,7 +10572,7 @@ Required: none
|
|
|
9753
10572
|
"type": "number"
|
|
9754
10573
|
},
|
|
9755
10574
|
"thickness": {
|
|
9756
|
-
"description": "
|
|
10575
|
+
"description": "Depth of the layer from base to top in meters, default 600.",
|
|
9757
10576
|
"type": "number",
|
|
9758
10577
|
"exclusiveMinimum": 0
|
|
9759
10578
|
},
|
|
@@ -9761,6 +10580,26 @@ Required: none
|
|
|
9761
10580
|
"description": "Horizontal cloud-pattern repeat size in meters, default 16000.",
|
|
9762
10581
|
"type": "number",
|
|
9763
10582
|
"exclusiveMinimum": 0
|
|
10583
|
+
},
|
|
10584
|
+
"type": {
|
|
10585
|
+
"description": "Cloud type of the layer, default cumulus: separate heaps; stratocumulus a lumpy closed layer; stratus a flat sheet; cumulonimbus towering storm cells (give them a thick layer).",
|
|
10586
|
+
"type": "string",
|
|
10587
|
+
"enum": [
|
|
10588
|
+
"cumulus",
|
|
10589
|
+
"stratocumulus",
|
|
10590
|
+
"stratus",
|
|
10591
|
+
"cumulonimbus"
|
|
10592
|
+
]
|
|
10593
|
+
},
|
|
10594
|
+
"cirrus": {
|
|
10595
|
+
"description": "Coverage 0–1 of a thin, wispy high cirrus layer, default 0. Independent of the main layer.",
|
|
10596
|
+
"type": "number",
|
|
10597
|
+
"minimum": 0,
|
|
10598
|
+
"maximum": 1
|
|
10599
|
+
},
|
|
10600
|
+
"cirrusAltitude": {
|
|
10601
|
+
"description": "Cirrus layer at absolute world Y in meters, default 9000.",
|
|
10602
|
+
"type": "number"
|
|
9764
10603
|
}
|
|
9765
10604
|
},
|
|
9766
10605
|
"additionalProperties": false
|