@bendyline/molen-tooling 0.0.14 → 0.0.16

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.
Files changed (46) hide show
  1. package/dist/capture/harness.js +736 -400
  2. package/dist/capture/worldgen-preview.js +409 -298
  3. package/dist/docs-src/guide/3d-art-guidelines.md +5 -2
  4. package/dist/docs-src/guide/adaptive-performance.md +50 -23
  5. package/dist/docs-src/guide/aircraft.md +275 -31
  6. package/dist/docs-src/guide/ambient-life.md +36 -9
  7. package/dist/docs-src/guide/building-interiors.md +92 -8
  8. package/dist/docs-src/guide/determinism.md +1 -1
  9. package/dist/docs-src/guide/dioramas.md +7 -0
  10. package/dist/docs-src/guide/earth-view.md +198 -16
  11. package/dist/docs-src/guide/entities.md +38 -7
  12. package/dist/docs-src/guide/figures.md +32 -4
  13. package/dist/docs-src/guide/graphics-performance.md +62 -19
  14. package/dist/docs-src/guide/livery-catalog.md +137 -1
  15. package/dist/docs-src/guide/livery-gallery.md +136 -1
  16. package/dist/docs-src/guide/medium-fi.md +194 -10
  17. package/dist/docs-src/guide/night-lighting.md +10 -0
  18. package/dist/docs-src/guide/regional-fleets.md +27 -5
  19. package/dist/docs-src/guide/regional-world.md +19 -1
  20. package/dist/docs-src/guide/rendering-backends.md +23 -2
  21. package/dist/docs-src/guide/sky.md +28 -2
  22. package/dist/docs-src/guide/snow.md +231 -0
  23. package/dist/docs-src/guide/surface-rendering.md +324 -9
  24. package/dist/docs-src/guide/terrain.md +84 -9
  25. package/dist/docs-src/guide/vehicle-interiors.md +6 -0
  26. package/dist/docs-src/guide/vehicles.md +368 -45
  27. package/dist/docs-src/guide/weather.md +7 -1
  28. package/dist/docs-src/guide/worldgen.md +82 -3
  29. package/dist/docs-src/llms.txt +3 -2
  30. package/dist/docs-src/schemas/README.md +1 -0
  31. package/dist/docs-src/schemas/components.md +749 -12
  32. package/dist/docs-src/schemas/figure.md +30 -4
  33. package/dist/docs-src/schemas/interior-catalog.md +56 -3
  34. package/dist/docs-src/schemas/map-overrides.md +658 -0
  35. package/dist/docs-src/schemas/structure-placement-data.md +195 -0
  36. package/dist/docs-src/schemas/structure-placements.md +195 -0
  37. package/dist/docs-src/schemas/worldgen-batch.md +54 -0
  38. package/dist/templates/city-courier/gen/molen-types.ts +113 -4
  39. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +112 -3
  40. package/dist/templates/figures-gallery/test/headless.test.ts +3 -2
  41. package/dist/templates/index.json +17 -17
  42. package/dist/templates/skybound/gen/molen-types.ts +113 -4
  43. package/dist/templates/skybound/scripts/molen-scripts.d.ts +112 -3
  44. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +112 -3
  45. package/dist/templates/top-down-arena/src/gen/molen-types.ts +113 -4
  46. package/package.json +12 -12
@@ -51,6 +51,7 @@ with `registerComponent(name, zodSchema, meta)` from `@bendyline/molen-schema`.
51
51
  | `character` | kernel/character | Kinematic character controller state (speed/jump/gravity + kernel-owned vy/grounded). |
52
52
  | `collider` | kernel/kinematics | 2.5D kinematic collider (circle or XZ AABB) with layer/mask bitmasks. |
53
53
  | `collider3d` | physics-rapier | 3D collider (ball/cuboid/capsule/hull/trimesh/asset/heightfield) with layer/mask, sensor, and material params. Static without a rigidbody. |
54
+ | `coupled` | kernel/vehicles | A rail car in a consist: rides the leader's track trail at a fixed distance behind it, sharing its speed. Powered cars add their traction to the leader's (multiple-unit control); every car adds its mass and brakes. |
54
55
  | `environment` | client | Singleton scene environment: optional Earth/custom sky, ambient/sun lighting, background, fog, tone mapping, shadow quality tier. |
55
56
  | `figure` | figures | What a figure is: a preset plus descriptor overrides (height, build, proportions, features, palette) and how it faces its motion. Pair with renderable.kind "figure". |
56
57
  | `figureAttachment` | figures | Follow a named socket of the parent figure (with `parent`): the figures systems write localTransform from the evaluated pose each tick. |
@@ -226,6 +227,11 @@ Required: `kind`, `type`, `lane`, `s`, `speed`, `seed`, `length`, `width`, `stat
226
227
  "maximum": 9007199254740991,
227
228
  "description": "Train cars: position behind the lead (1 = first)."
228
229
  },
230
+ "offset": {
231
+ "type": "number",
232
+ "exclusiveMinimum": 0,
233
+ "description": "Train cars: metres behind the lead's centre (default from carIndex)."
234
+ },
229
235
  "trail": {
230
236
  "type": "array",
231
237
  "items": {
@@ -419,6 +425,114 @@ Required: `role`
419
425
  "maximum": 9007199254740991,
420
426
  "description": "Rail: cars per consist (default 2)."
421
427
  },
428
+ "track": {
429
+ "type": "string",
430
+ "enum": [
431
+ "light",
432
+ "heavy"
433
+ ],
434
+ "description": "Rail: tram and light-rail lines (light) or the rest (heavy); default any."
435
+ },
436
+ "consist": {
437
+ "type": "object",
438
+ "properties": {
439
+ "units": {
440
+ "type": "array",
441
+ "prefixItems": [
442
+ {
443
+ "type": "integer",
444
+ "exclusiveMinimum": 0,
445
+ "maximum": 9007199254740991
446
+ },
447
+ {
448
+ "type": "integer",
449
+ "exclusiveMinimum": 0,
450
+ "maximum": 9007199254740991
451
+ }
452
+ ],
453
+ "items": false,
454
+ "minItems": 2,
455
+ "maxItems": 2,
456
+ "description": "Copies of this type at the head, inclusive range (default [1, 1])."
457
+ },
458
+ "length": {
459
+ "type": "array",
460
+ "prefixItems": [
461
+ {
462
+ "type": "integer",
463
+ "minimum": 0,
464
+ "maximum": 9007199254740991
465
+ },
466
+ {
467
+ "type": "integer",
468
+ "minimum": 0,
469
+ "maximum": 9007199254740991
470
+ }
471
+ ],
472
+ "items": false,
473
+ "minItems": 2,
474
+ "maxItems": 2,
475
+ "description": "Cars after the units, inclusive range."
476
+ },
477
+ "block": {
478
+ "type": "array",
479
+ "prefixItems": [
480
+ {
481
+ "type": "integer",
482
+ "exclusiveMinimum": 0,
483
+ "maximum": 9007199254740991
484
+ },
485
+ {
486
+ "type": "integer",
487
+ "exclusiveMinimum": 0,
488
+ "maximum": 9007199254740991
489
+ }
490
+ ],
491
+ "items": false,
492
+ "minItems": 2,
493
+ "maxItems": 2,
494
+ "description": "Cars of one type in a row, inclusive range (default [1, 1])."
495
+ },
496
+ "cars": {
497
+ "minItems": 1,
498
+ "type": "array",
499
+ "items": {
500
+ "type": "object",
501
+ "properties": {
502
+ "type": {
503
+ "type": "string",
504
+ "minLength": 1,
505
+ "description": "Car entity type id."
506
+ },
507
+ "weight": {
508
+ "type": "number",
509
+ "minimum": 0,
510
+ "description": "Relative draw weight (default 1)."
511
+ },
512
+ "colors": {
513
+ "minItems": 1,
514
+ "type": "array",
515
+ "items": {
516
+ "type": "string"
517
+ },
518
+ "description": "Paints this car picks from (#rrggbb)."
519
+ }
520
+ },
521
+ "required": [
522
+ "type"
523
+ ],
524
+ "additionalProperties": false
525
+ },
526
+ "description": "The car pool."
527
+ }
528
+ },
529
+ "required": [
530
+ "length",
531
+ "cars"
532
+ ],
533
+ "additionalProperties": false,
534
+ "description": "Rail: a mixed train this type leads; supersedes cars."
535
+ },
422
536
  "colors": {
423
537
  "minItems": 1,
424
538
  "type": "array",
@@ -3503,15 +3617,40 @@ Required: `preset`
3503
3617
  "features": {
3504
3618
  "type": "object",
3505
3619
  "properties": {
3620
+ "form": {
3621
+ "type": "string",
3622
+ "enum": [
3623
+ "neutral",
3624
+ "masculine",
3625
+ "feminine"
3626
+ ],
3627
+ "description": "Human body form: shoulder, waist, hip and chest shape (bipeds)."
3628
+ },
3506
3629
  "hair": {
3507
3630
  "type": "string",
3508
3631
  "enum": [
3509
3632
  "none",
3633
+ "buzz",
3634
+ "balding",
3510
3635
  "cap",
3636
+ "crop",
3511
3637
  "bob",
3512
- "long"
3638
+ "long",
3639
+ "ponytail",
3640
+ "bun",
3641
+ "afro"
3642
+ ],
3643
+ "description": "Hair style: none, buzz, balding, cap (short), crop, bob, long, ponytail, bun, afro."
3644
+ },
3645
+ "facialHair": {
3646
+ "type": "string",
3647
+ "enum": [
3648
+ "none",
3649
+ "stubble",
3650
+ "mustache",
3651
+ "beard"
3513
3652
  ],
3514
- "description": "Hair shell style."
3653
+ "description": "Facial hair (humans), drawn in the hair color."
3515
3654
  },
3516
3655
  "hands": {
3517
3656
  "type": "string",
@@ -3534,9 +3673,10 @@ Required: `preset`
3534
3673
  "type": "string",
3535
3674
  "enum": [
3536
3675
  "shorts",
3537
- "long"
3676
+ "long",
3677
+ "skirt"
3538
3678
  ],
3539
- "description": "Legwear length (bottom color extent)."
3679
+ "description": "Legwear: shorts, long trousers, or a knee-length skirt (bottom color)."
3540
3680
  },
3541
3681
  "tail": {
3542
3682
  "type": "string",
@@ -4701,6 +4841,16 @@ Required: `kind`, `spec`
4701
4841
  "description": "Propeller polar moment of inertia in kg m², for gyroscopic precession. Default 0.",
4702
4842
  "type": "number",
4703
4843
  "minimum": 0
4844
+ },
4845
+ "fuelConsumption": {
4846
+ "description": "Specific fuel consumption when the aircraft declares fuel: kg per joule of shaft work for a propeller or rotor engine (default 7.5e-8 with a manual mixture, 9.5e-8 otherwise), kg per newton-second of thrust for a jet (default 2e-5).",
4847
+ "type": "number",
4848
+ "exclusiveMinimum": 0
4849
+ },
4850
+ "afterburnerFuelConsumption": {
4851
+ "description": "Jet consumption in kg per newton-second of total thrust at full reheat. Default 5.4e-5.",
4852
+ "type": "number",
4853
+ "exclusiveMinimum": 0
4704
4854
  }
4705
4855
  },
4706
4856
  "required": [
@@ -4866,6 +5016,16 @@ Required: `kind`, `spec`
4866
5016
  "type": "number",
4867
5017
  "minimum": 0
4868
5018
  },
5019
+ "fuelConsumption": {
5020
+ "description": "Specific fuel consumption when the aircraft declares fuel: kg per joule of shaft work for a propeller or rotor engine (default 7.5e-8 with a manual mixture, 9.5e-8 otherwise), kg per newton-second of thrust for a jet (default 2e-5).",
5021
+ "type": "number",
5022
+ "exclusiveMinimum": 0
5023
+ },
5024
+ "afterburnerFuelConsumption": {
5025
+ "description": "Jet consumption in kg per newton-second of total thrust at full reheat. Default 5.4e-5.",
5026
+ "type": "number",
5027
+ "exclusiveMinimum": 0
5028
+ },
4869
5029
  "id": {
4870
5030
  "type": "string",
4871
5031
  "pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
@@ -5229,6 +5389,21 @@ Required: `kind`, `spec`
5229
5389
  "type": "number",
5230
5390
  "exclusiveMinimum": 0,
5231
5391
  "description": "Tire side grip with full weight on the wheels: lateral deceleration in m/s² and yaw grip in 1/s."
5392
+ },
5393
+ "tailwheel": {
5394
+ "description": "Main wheels ahead of the center of mass with a tailwheel: a firm touchdown pitches the nose up and hard braking lifts the tail. Default false (nosewheel).",
5395
+ "type": "boolean"
5396
+ },
5397
+ "gearRebound": {
5398
+ "description": "Share of the sink speed beyond 0.6 m/s that struts and tires give back at touchdown. Default 0.45.",
5399
+ "type": "number",
5400
+ "minimum": 0,
5401
+ "maximum": 1
5402
+ },
5403
+ "pilotGTolerance": {
5404
+ "description": "Sustained positive g the pilot holds before vision dims. Default 4.5, or 6.5 when maxLoadFactor is 7.5 or more.",
5405
+ "type": "number",
5406
+ "exclusiveMinimum": 0
5232
5407
  }
5233
5408
  },
5234
5409
  "required": [
@@ -5326,6 +5501,27 @@ Required: `kind`, `spec`
5326
5501
  "minimum": 1,
5327
5502
  "maximum": 2
5328
5503
  },
5504
+ "rotorInertiaTime": {
5505
+ "description": "Seconds of hover power stored in the rotor at full speed; default 2. Sets how long an unpowered rotor carries the helicopter (autorotation); needs powerLimitedRotor.",
5506
+ "type": "number",
5507
+ "exclusiveMinimum": 0
5508
+ },
5509
+ "directionalStability": {
5510
+ "description": "Tail-fin weathervaning in forward flight; default 1, 0 disables. The nose turns into the relative wind at directionalStability × airspeed / length rad/s per radian of sideslip, so a banked helicopter turns its nose with its track.",
5511
+ "type": "number",
5512
+ "minimum": 0
5513
+ },
5514
+ "cyclicRate": {
5515
+ "description": "Direct-cyclic pitch and roll rate at full stick with the rotor carrying the weight, rad/s; default cyclicResponse / 4.",
5516
+ "type": "number",
5517
+ "exclusiveMinimum": 0
5518
+ },
5519
+ "hubStiffness": {
5520
+ "description": "Share of direct-cyclic control power independent of rotor thrust, 0..1; default 0.25. Near 0 for a teetering rotor (no control at zero g), higher for articulated and hingeless rotors.",
5521
+ "type": "number",
5522
+ "minimum": 0,
5523
+ "maximum": 1
5524
+ },
5329
5525
  "cyclicTilt": {
5330
5526
  "type": "number",
5331
5527
  "exclusiveMinimum": 0,
@@ -5462,6 +5658,21 @@ Required: `kind`, `spec`
5462
5658
  ],
5463
5659
  "additionalProperties": false
5464
5660
  },
5661
+ "fuel": {
5662
+ "description": "Fuel on board: mass is the aircraft with full tanks, it lightens as fuel burns and the engines stop when the tanks are dry. Omitted is unlimited fuel at constant mass.",
5663
+ "type": "object",
5664
+ "properties": {
5665
+ "capacity": {
5666
+ "type": "number",
5667
+ "exclusiveMinimum": 0,
5668
+ "description": "Usable fuel in kg with full tanks."
5669
+ }
5670
+ },
5671
+ "required": [
5672
+ "capacity"
5673
+ ],
5674
+ "additionalProperties": false
5675
+ },
5465
5676
  "hardLandingSpeed": {
5466
5677
  "type": "number",
5467
5678
  "exclusiveMinimum": 0,
@@ -6540,6 +6751,14 @@ Required: `power`, `pitch`, `roll`, `yaw`, `brake`, `engine`, `gear`, `flaps`
6540
6751
  "type": "number",
6541
6752
  "minimum": 0,
6542
6753
  "maximum": 1
6754
+ },
6755
+ "cyclicMode": {
6756
+ "description": "Helicopter cyclic: assisted (default) commands a bounded, self-levelling tilt; direct commands pitch and roll rates with full authority (loops, rolls, straight down). Both are assisted on the ground.",
6757
+ "type": "string",
6758
+ "enum": [
6759
+ "assisted",
6760
+ "direct"
6761
+ ]
6543
6762
  }
6544
6763
  },
6545
6764
  "required": [
@@ -6802,6 +7021,29 @@ Required: `velocity`, `yaw`, `pitch`, `roll`, `pitchRate`, `rollRate`, `rpm`, `r
6802
7021
  "description": "Airplane aerodynamic and thrust load along its up axis, in g.",
6803
7022
  "type": "number"
6804
7023
  },
7024
+ "fuel": {
7025
+ "description": "Fuel remaining in kg when the aircraft declares fuel; absent is full tanks.",
7026
+ "type": "number",
7027
+ "minimum": 0
7028
+ },
7029
+ "buffet": {
7030
+ "description": "Airplane pre-stall and stalled-wing buffet, 0..1: a cue to shake the view, starting a few degrees before the stall.",
7031
+ "type": "number",
7032
+ "minimum": 0,
7033
+ "maximum": 1
7034
+ },
7035
+ "greyout": {
7036
+ "description": "Pilot strain under positive g, 0..1: vision starts to dim near 0.3 and is gone at 1.",
7037
+ "type": "number",
7038
+ "minimum": 0,
7039
+ "maximum": 1
7040
+ },
7041
+ "redout": {
7042
+ "description": "Pilot strain under negative g, 0..1.",
7043
+ "type": "number",
7044
+ "minimum": 0,
7045
+ "maximum": 1
7046
+ },
6805
7047
  "engines": {
6806
7048
  "description": "Authoritative individual spool, rotor phase, failure and thrust state; initialized by the solver.",
6807
7049
  "type": "object",
@@ -8893,6 +9135,48 @@ Required: `vel`, `slide`
8893
9135
 
8894
9136
  ## Owner: kernel/vehicles
8895
9137
 
9138
+ ### `coupled`
9139
+
9140
+ A rail car in a consist: rides the leader's track trail at a fixed distance behind it, sharing its speed. Powered cars add their traction to the leader's (multiple-unit control); every car adds its mass and brakes.
9141
+
9142
+ Required: `leader`, `offset`
9143
+
9144
+ ```json
9145
+ {
9146
+ "leader": "train-1-loco",
9147
+ "offset": 21.5
9148
+ }
9149
+ ```
9150
+
9151
+ <details>
9152
+ <summary>JSON Schema</summary>
9153
+
9154
+ ```json
9155
+ {
9156
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9157
+ "type": "object",
9158
+ "properties": {
9159
+ "leader": {
9160
+ "type": "string",
9161
+ "minLength": 1,
9162
+ "description": "Entity ID of the track-guided vehicle at the head of the consist."
9163
+ },
9164
+ "offset": {
9165
+ "type": "number",
9166
+ "exclusiveMinimum": 0,
9167
+ "description": "Distance in meters along the track from the leader's centre back to this car's centre."
9168
+ }
9169
+ },
9170
+ "required": [
9171
+ "leader",
9172
+ "offset"
9173
+ ],
9174
+ "additionalProperties": false
9175
+ }
9176
+ ```
9177
+
9178
+ </details>
9179
+
8896
9180
  ### `mountable`
8897
9181
 
8898
9182
  Mount points in local meters, ordered safe exit candidates, and interaction reach. Seat position is the rider camera anchor.
@@ -9325,9 +9609,19 @@ Required: `kind`, `color`, `spec`, `visual`
9325
9609
  "motorhome",
9326
9610
  "bus",
9327
9611
  "light-rail",
9612
+ "locomotive",
9613
+ "freight-car",
9614
+ "passenger-car",
9328
9615
  "bicycle",
9329
9616
  "motorcycle",
9330
- "scooter"
9617
+ "scooter",
9618
+ "moped",
9619
+ "kick-scooter",
9620
+ "skateboard",
9621
+ "auto-rickshaw",
9622
+ "skis",
9623
+ "snowboard",
9624
+ "snowmobile"
9331
9625
  ]
9332
9626
  },
9333
9627
  "genericLabel": {
@@ -9503,6 +9797,164 @@ Required: `kind`, `color`, `spec`, `visual`
9503
9797
  "type": "number",
9504
9798
  "exclusiveMinimum": 0
9505
9799
  },
9800
+ "powertrain": {
9801
+ "description": "Engine, gears and driveline: wheel force is engine torque through the selected gear. Without one the constant engineForce drives the vehicle up to maxSpeed.",
9802
+ "type": "object",
9803
+ "properties": {
9804
+ "power": {
9805
+ "type": "number",
9806
+ "exclusiveMinimum": 0,
9807
+ "description": "Peak power at the engine or motor shaft, in watts."
9808
+ },
9809
+ "peakPowerRpm": {
9810
+ "type": "number",
9811
+ "exclusiveMinimum": 0,
9812
+ "description": "Engine speed at peak power, rev/min."
9813
+ },
9814
+ "redline": {
9815
+ "description": "Rev limit, rev/min. Default 1.1 × peakPowerRpm.",
9816
+ "type": "number",
9817
+ "exclusiveMinimum": 0
9818
+ },
9819
+ "idle": {
9820
+ "description": "Idle speed, rev/min. Default 800, or 0 for an electric motor.",
9821
+ "type": "number",
9822
+ "minimum": 0
9823
+ },
9824
+ "curve": {
9825
+ "description": "Torque curve shape. Default gasoline; turbo and diesel hold a low-speed torque plateau, electric holds its peak torque from rest up to peakPowerRpm and then constant power.",
9826
+ "type": "string",
9827
+ "enum": [
9828
+ "gasoline",
9829
+ "turbo",
9830
+ "diesel",
9831
+ "electric"
9832
+ ]
9833
+ },
9834
+ "gears": {
9835
+ "minItems": 1,
9836
+ "maxItems": 12,
9837
+ "type": "array",
9838
+ "items": {
9839
+ "type": "number",
9840
+ "exclusiveMinimum": 0
9841
+ },
9842
+ "description": "Overall ratios (gearbox × final drive: engine revs per wheel rev), lowest gear first."
9843
+ },
9844
+ "continuous": {
9845
+ "description": "Continuously variable transmission ranging between the first and last gears ratios.",
9846
+ "type": "boolean"
9847
+ },
9848
+ "reverse": {
9849
+ "description": "Overall reverse ratio. Default first gear.",
9850
+ "type": "number",
9851
+ "exclusiveMinimum": 0
9852
+ },
9853
+ "efficiency": {
9854
+ "description": "Share of engine torque that reaches the wheels. Default 0.9.",
9855
+ "type": "number",
9856
+ "exclusiveMinimum": 0,
9857
+ "maximum": 1
9858
+ },
9859
+ "shiftTime": {
9860
+ "description": "Seconds of reduced drive during a gear change. Default 0.3.",
9861
+ "type": "number",
9862
+ "minimum": 0
9863
+ },
9864
+ "engineBraking": {
9865
+ "description": "Engine braking off the throttle (regeneration for an electric motor), as a share of the torque at peak power. Default 0.2.",
9866
+ "type": "number",
9867
+ "minimum": 0
9868
+ },
9869
+ "response": {
9870
+ "description": "How fast delivered torque follows the pedal, 1/s. Default 8; turbo and diesel 4, electric 20.",
9871
+ "type": "number",
9872
+ "exclusiveMinimum": 0
9873
+ },
9874
+ "inertia": {
9875
+ "description": "Rotating inertia of the engine, flywheel and gearbox input in kg m², spun up with the car (most in low gears). Default 0.1 + power / 1 MW, or 0.06 for an electric motor.",
9876
+ "type": "number",
9877
+ "minimum": 0
9878
+ }
9879
+ },
9880
+ "required": [
9881
+ "power",
9882
+ "peakPowerRpm",
9883
+ "gears"
9884
+ ],
9885
+ "additionalProperties": false
9886
+ },
9887
+ "rearGrip": {
9888
+ "description": "Rear tire grip in m/s² where it differs from the front (wider rear tires). Default grip.",
9889
+ "type": "number",
9890
+ "exclusiveMinimum": 0
9891
+ },
9892
+ "tireLoadSensitivity": {
9893
+ "description": "Share of its friction a tire loses when its load doubles from a quarter of the weight. Default 0.25; the heavier and the stiffer-sprung axle slides first. 0 keeps grip proportional to load.",
9894
+ "type": "number",
9895
+ "minimum": 0,
9896
+ "maximum": 0.6
9897
+ },
9898
+ "rollBalance": {
9899
+ "description": "Front axle share of the roll stiffness. Default 0.6; the stiffer axle carries more of the cornering weight transfer and loses grip first, so more is understeer.",
9900
+ "type": "number",
9901
+ "minimum": 0,
9902
+ "maximum": 1
9903
+ },
9904
+ "aerodynamicLift": {
9905
+ "description": "Aerodynamic lift as an acceleration per (m/s)² of airspeed, in 1/m; negative is downforce. Default 0.",
9906
+ "type": "number"
9907
+ },
9908
+ "tractionControl": {
9909
+ "description": "Traction control holds wheelspin at the grip limit. Default true.",
9910
+ "type": "boolean"
9911
+ },
9912
+ "stabilityControl": {
9913
+ "description": "Stability control brakes one wheel to catch a slide. Default true.",
9914
+ "type": "boolean"
9915
+ },
9916
+ "limitedSlip": {
9917
+ "description": "How far the driven axle resists one-wheel spin: 0 open differential (the unloaded inside wheel spins first), 1 locked. Default 0.",
9918
+ "type": "number",
9919
+ "minimum": 0,
9920
+ "maximum": 1
9921
+ },
9922
+ "looseSurfaceGrip": {
9923
+ "description": "Share of the grip loose surfaces take away that the tires win back (off-road tread). Default 0.",
9924
+ "type": "number",
9925
+ "minimum": 0,
9926
+ "maximum": 1
9927
+ },
9928
+ "runners": {
9929
+ "description": "Runners in place of tires (skis, a snowboard, a snowmobile): slides on the weather snow cover with this friction, holds its full grip there and floats over any depth; scrapes to a stop off the snow. Slides downhill from rest unless braked.",
9930
+ "type": "object",
9931
+ "properties": {
9932
+ "friction": {
9933
+ "type": "number",
9934
+ "minimum": 0,
9935
+ "maximum": 1,
9936
+ "description": "Sliding friction coefficient on snow; resists as friction × g. About 0.05 for waxed skis, 0.12 for a snowmobile track."
9937
+ },
9938
+ "bareDrag": {
9939
+ "description": "Resistance in m/s² off the snow, where runners scrape bare ground. Default 3.",
9940
+ "type": "number",
9941
+ "minimum": 0
9942
+ },
9943
+ "pushSpeed": {
9944
+ "description": "Fastest the rider pushing (poling, skating) drives it, m/s; gravity may take it on to maxSpeed. Absent: engineForce works up to maxSpeed.",
9945
+ "type": "number",
9946
+ "exclusiveMinimum": 0
9947
+ },
9948
+ "flat": {
9949
+ "description": "A cycle whose runners stay flat on the snow in a turn (a pair of skis) instead of banking as one plank (a snowboard); the lean stays in vehicleState.bodyRoll for the rider pose. Default false.",
9950
+ "type": "boolean"
9951
+ }
9952
+ },
9953
+ "required": [
9954
+ "friction"
9955
+ ],
9956
+ "additionalProperties": false
9957
+ },
9506
9958
  "cycle": {
9507
9959
  "description": "Self-balancing cycle handling and rider contact points. Driver seat anchors the pelvis.",
9508
9960
  "type": "object",
@@ -9551,7 +10003,7 @@ Required: `kind`, `color`, `spec`, `visual`
9551
10003
  "items": false,
9552
10004
  "minItems": 2,
9553
10005
  "maxItems": 2,
9554
- "description": "Left and right hand targets in model-local meters."
10006
+ "description": "Left and right hand targets in model-local meters; they turn with the bars. A sideways rider holds them free: unturned, moving with the hips of a shorter or taller body."
9555
10007
  },
9556
10008
  "footrests": {
9557
10009
  "type": "array",
@@ -9576,7 +10028,31 @@ Required: `kind`, `color`, `spec`, `visual`
9576
10028
  "items": false,
9577
10029
  "minItems": 2,
9578
10030
  "maxItems": 2,
9579
- "description": "Left and right ankle targets in model-local meters."
10031
+ "description": "Left and right ankle targets on the footrests or deck, in model-local meters."
10032
+ },
10033
+ "stance": {
10034
+ "description": "How the rider stands: on a saddle (seated, default), upright on a deck facing the bars (standing), or across a board left foot forward (sideways). Standing and sideways seats are adult hip positions; the pose fits the hips to each body's legs.",
10035
+ "type": "string",
10036
+ "enum": [
10037
+ "seated",
10038
+ "standing",
10039
+ "sideways"
10040
+ ]
10041
+ },
10042
+ "kick": {
10043
+ "description": "Push-powered (a skateboard): under power the rider turns forward and pushes off the ground with the rear foot.",
10044
+ "type": "object",
10045
+ "properties": {
10046
+ "stride": {
10047
+ "type": "number",
10048
+ "exclusiveMinimum": 0,
10049
+ "description": "Meters travelled per push."
10050
+ }
10051
+ },
10052
+ "required": [
10053
+ "stride"
10054
+ ],
10055
+ "additionalProperties": false
9580
10056
  },
9581
10057
  "pedals": {
9582
10058
  "description": "Bicycle crank geometry and gearing; omitted on motor vehicles.",
@@ -9624,6 +10100,143 @@ Required: `kind`, `color`, `spec`, `visual`
9624
10100
  "footrests"
9625
10101
  ],
9626
10102
  "additionalProperties": false
10103
+ },
10104
+ "headlamps": {
10105
+ "description": "Headlamp lens centres in model-local meters, at most two; night lighting places its beams there. Empty: no headlamps. Absent: a pair guessed from the body size.",
10106
+ "maxItems": 2,
10107
+ "type": "array",
10108
+ "items": {
10109
+ "minItems": 3,
10110
+ "maxItems": 3,
10111
+ "type": "array",
10112
+ "items": {
10113
+ "type": "number"
10114
+ }
10115
+ }
10116
+ },
10117
+ "handlebar": {
10118
+ "description": "Handlebar steering on a vehicle that does not lean (a three-wheeler): the driver contact points, the driver seat anchoring the pelvis. Ignored with cycle.",
10119
+ "type": "object",
10120
+ "properties": {
10121
+ "riderLean": {
10122
+ "type": "number",
10123
+ "minimum": 0,
10124
+ "maximum": 1,
10125
+ "description": "Forward torso lean in radians."
10126
+ },
10127
+ "handlebarPivot": {
10128
+ "minItems": 3,
10129
+ "maxItems": 3,
10130
+ "type": "array",
10131
+ "items": {
10132
+ "type": "number"
10133
+ },
10134
+ "description": "Steering pivot in model-local meters."
10135
+ },
10136
+ "grips": {
10137
+ "type": "array",
10138
+ "prefixItems": [
10139
+ {
10140
+ "minItems": 3,
10141
+ "maxItems": 3,
10142
+ "type": "array",
10143
+ "items": {
10144
+ "type": "number"
10145
+ }
10146
+ },
10147
+ {
10148
+ "minItems": 3,
10149
+ "maxItems": 3,
10150
+ "type": "array",
10151
+ "items": {
10152
+ "type": "number"
10153
+ }
10154
+ }
10155
+ ],
10156
+ "items": false,
10157
+ "minItems": 2,
10158
+ "maxItems": 2,
10159
+ "description": "Left and right hand targets in model-local meters; they turn with the bars. A sideways rider holds them free: unturned, moving with the hips of a shorter or taller body."
10160
+ },
10161
+ "footrests": {
10162
+ "type": "array",
10163
+ "prefixItems": [
10164
+ {
10165
+ "minItems": 3,
10166
+ "maxItems": 3,
10167
+ "type": "array",
10168
+ "items": {
10169
+ "type": "number"
10170
+ }
10171
+ },
10172
+ {
10173
+ "minItems": 3,
10174
+ "maxItems": 3,
10175
+ "type": "array",
10176
+ "items": {
10177
+ "type": "number"
10178
+ }
10179
+ }
10180
+ ],
10181
+ "items": false,
10182
+ "minItems": 2,
10183
+ "maxItems": 2,
10184
+ "description": "Left and right ankle targets on the footrests or deck, in model-local meters."
10185
+ }
10186
+ },
10187
+ "required": [
10188
+ "riderLean",
10189
+ "handlebarPivot",
10190
+ "grips",
10191
+ "footrests"
10192
+ ],
10193
+ "additionalProperties": false
10194
+ },
10195
+ "rail": {
10196
+ "description": "External rail setting.",
10197
+ "type": "object",
10198
+ "properties": {
10199
+ "truckCenters": {
10200
+ "type": "number",
10201
+ "exclusiveMinimum": 0,
10202
+ "description": "Distance between the two truck (bogie) pivots along the body, meters. The body rides as the chord between them on curves."
10203
+ },
10204
+ "couplerLength": {
10205
+ "description": "Length over the coupler pulling faces, meters; spacing in a consist. Default length.",
10206
+ "type": "number",
10207
+ "exclusiveMinimum": 0
10208
+ },
10209
+ "power": {
10210
+ "description": "Power at the rail in watts. Tractive effort is engineForce up to power / speed; 0 (default) is an unpowered car that only brakes.",
10211
+ "type": "number",
10212
+ "minimum": 0
10213
+ },
10214
+ "gauge": {
10215
+ "description": "Track gauge between rail heads, meters. Default 1.435 (standard gauge).",
10216
+ "type": "number",
10217
+ "exclusiveMinimum": 0
10218
+ },
10219
+ "profile": {
10220
+ "description": "Silhouette of the low-detail stand-in drawn at a distance (parked in a yard, far traffic). Default box.",
10221
+ "type": "string",
10222
+ "enum": [
10223
+ "box",
10224
+ "hopper",
10225
+ "tank",
10226
+ "gondola",
10227
+ "flat",
10228
+ "well",
10229
+ "autorack",
10230
+ "locomotive",
10231
+ "coach",
10232
+ "railcar"
10233
+ ]
10234
+ }
10235
+ },
10236
+ "required": [
10237
+ "truckCenters"
10238
+ ],
10239
+ "additionalProperties": false
9627
10240
  }
9628
10241
  },
9629
10242
  "required": [
@@ -9659,22 +10272,20 @@ Required: `kind`, `color`, `spec`, `visual`
9659
10272
  "type": "object",
9660
10273
  "properties": {
9661
10274
  "wheelNodes": {
9662
- "minItems": 1,
9663
10275
  "type": "array",
9664
10276
  "items": {
9665
10277
  "type": "string",
9666
10278
  "minLength": 1
9667
10279
  },
9668
- "description": "External wheelNodes setting."
10280
+ "description": "Wheel nodes, spun by the wheel angle. At least one, except on a vehicle with runners (skis, a board), which has none."
9669
10281
  },
9670
10282
  "frontWheelNodes": {
9671
- "minItems": 1,
9672
10283
  "type": "array",
9673
10284
  "items": {
9674
10285
  "type": "string",
9675
10286
  "minLength": 1
9676
10287
  },
9677
- "description": "External frontWheelNodes setting."
10288
+ "description": "Wheel nodes turned by the steering angle. Empty when animation bindings pose the steering instead (a skateboard turns its trucks)."
9678
10289
  },
9679
10290
  "steeringWheelNode": {
9680
10291
  "description": "External steeringWheelNode setting.",
@@ -10404,9 +11015,15 @@ Required: `speed`, `steer`, `yaw`, `pitch`, `roll`, `vy`, `grounded`, `waitingFo
10404
11015
  "description": "Accumulated wheel spin angle in radians, wrapped each revolution."
10405
11016
  },
10406
11017
  "pedalAngle": {
10407
- "description": "Cycle crank angle in radians; advances under forward power and holds while coasting or braking.",
11018
+ "description": "Cycle crank angle in radians; advances under forward power and holds while coasting or braking. On a push-powered cycle, the phase of the current push.",
10408
11019
  "type": "number"
10409
11020
  },
11021
+ "kick": {
11022
+ "description": "Push-powered cycles: 0 riding sideways to 1 turned forward to push off; eases between them.",
11023
+ "type": "number",
11024
+ "minimum": 0,
11025
+ "maximum": 1
11026
+ },
10410
11027
  "lateralSpeed": {
10411
11028
  "description": "Sideways speed in meters per second, positive to the left: the slide.",
10412
11029
  "type": "number"
@@ -10436,6 +11053,92 @@ Required: `speed`, `steer`, `yaw`, `pitch`, `roll`, `vy`, `grounded`, `waitingFo
10436
11053
  "type": "number",
10437
11054
  "minimum": 0,
10438
11055
  "maximum": 1
11056
+ },
11057
+ "gear": {
11058
+ "description": "Selected gear with a powertrain: -1 reverse, 1 upward forward gears.",
11059
+ "type": "integer",
11060
+ "minimum": -1,
11061
+ "maximum": 12
11062
+ },
11063
+ "rpm": {
11064
+ "description": "Engine speed in rev/min with a powertrain; rises and falls with the gears.",
11065
+ "type": "number",
11066
+ "minimum": 0
11067
+ },
11068
+ "engineLoad": {
11069
+ "description": "0–1 share of the engine torque being delivered, after its throttle response.",
11070
+ "type": "number",
11071
+ "minimum": 0,
11072
+ "maximum": 1
11073
+ },
11074
+ "shift": {
11075
+ "description": "Seconds until the gearbox may change gear again; drive is reduced as it starts.",
11076
+ "type": "number",
11077
+ "minimum": 0
11078
+ },
11079
+ "assist": {
11080
+ "description": "0–1: how hard traction or stability control is intervening.",
11081
+ "type": "number",
11082
+ "minimum": 0,
11083
+ "maximum": 1
11084
+ },
11085
+ "surfaceGrip": {
11086
+ "description": "Grip of the surface under the wheels relative to dry pavement; 1 on the road.",
11087
+ "type": "number",
11088
+ "minimum": 0
11089
+ },
11090
+ "snowDepth": {
11091
+ "description": "Meters of lying snow under the vehicle (the weather snow cover, less what a ploughed road clears); absent on bare ground.",
11092
+ "type": "number",
11093
+ "minimum": 0
11094
+ },
11095
+ "stuck": {
11096
+ "description": "Deep snow is holding the vehicle against its own drive: it cannot pull away from a stand.",
11097
+ "type": "boolean"
11098
+ },
11099
+ "track": {
11100
+ "description": "Track-guided vehicles (spec.rail with a host track guide): where the rails ran.",
11101
+ "type": "object",
11102
+ "properties": {
11103
+ "trail": {
11104
+ "maxItems": 3072,
11105
+ "type": "array",
11106
+ "items": {
11107
+ "type": "number"
11108
+ },
11109
+ "description": "Recent track centreline under the vehicle, newest first, as flat x, y, z triples in world meters about 2 m apart; coupled cars ride on it."
11110
+ },
11111
+ "prefer": {
11112
+ "anyOf": [
11113
+ {
11114
+ "type": "number",
11115
+ "const": -1
11116
+ },
11117
+ {
11118
+ "type": "number",
11119
+ "const": 0
11120
+ },
11121
+ {
11122
+ "type": "number",
11123
+ "const": 1
11124
+ }
11125
+ ],
11126
+ "description": "Route at the next switch: -1 left, 0 straight on, 1 right."
11127
+ },
11128
+ "ended": {
11129
+ "description": "True while the vehicle stands at the end of its track.",
11130
+ "type": "boolean"
11131
+ },
11132
+ "ref": {
11133
+ "description": "The host track guide's reference for the piece of track under the head.",
11134
+ "type": "string"
11135
+ }
11136
+ },
11137
+ "required": [
11138
+ "trail",
11139
+ "prefer"
11140
+ ],
11141
+ "additionalProperties": false
10439
11142
  }
10440
11143
  },
10441
11144
  "required": [
@@ -10662,6 +11365,40 @@ Required: none
10662
11365
  },
10663
11366
  "additionalProperties": false
10664
11367
  },
11368
+ "snowCover": {
11369
+ "description": "Snow lying on the ground above a snow line, independent of whether snow is falling. Absent means bare ground. Slows walkers, bogs wheeled vehicles down and lets runners glide; renderers whiten ground, roofs and foliage above the line.",
11370
+ "type": "object",
11371
+ "properties": {
11372
+ "level": {
11373
+ "type": "number",
11374
+ "description": "Snow line: the absolute world Y in meters where lying snow begins. Ground below it is bare."
11375
+ },
11376
+ "transition": {
11377
+ "description": "Height in meters above the snow line over which cover builds from none to complete; default 150. Zero is a hard line.",
11378
+ "type": "number",
11379
+ "minimum": 0
11380
+ },
11381
+ "depth": {
11382
+ "description": "Snow depth in meters where cover becomes complete, at the top of the transition; default 0.15.",
11383
+ "type": "number",
11384
+ "minimum": 0
11385
+ },
11386
+ "depthGain": {
11387
+ "description": "Extra depth in meters for each 1000 m of height above that; default 0.6.",
11388
+ "type": "number",
11389
+ "minimum": 0
11390
+ },
11391
+ "maxDepth": {
11392
+ "description": "Greatest depth in meters at any height; default 1.5.",
11393
+ "type": "number",
11394
+ "minimum": 0
11395
+ }
11396
+ },
11397
+ "required": [
11398
+ "level"
11399
+ ],
11400
+ "additionalProperties": false
11401
+ },
10665
11402
  "seed": {
10666
11403
  "description": "Stable visual pattern seed, default 1. Does not consume simulation RNG.",
10667
11404
  "type": "integer",