@bendyline/molen-client 0.0.12 → 0.0.15

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/README.md CHANGED
@@ -67,7 +67,7 @@ probe — a pinned backend is what makes a captured frame reproducible.
67
67
  | `./vite` | `molenScripts()` — a Vite plugin that type-strips `*.ts?raw` scene scripts so the browser never sees TypeScript |
68
68
  | `./vehicles` | `createVehicleVisual`, `createParkedVehicleBatch`, `vehicleCameraPose` — car visuals and cockpit/chase views, the render half of `@bendyline/molen-kernel/vehicles` |
69
69
  | `./glass` | `createGlassVisual` — retained laminate cracks, released sheets and bounded glass fragments |
70
- | `./aircraft` | `createAircraftVisual`, `aircraftCameraPose` — animated airframe and instrumented cockpit, the render half of `@bendyline/molen-kernel/aircraft` |
70
+ | `./aircraft` | `createAircraftVisual`, `aircraftCameraPose`, `PilotMotion` — animated airframe, instrumented cockpit and the pilot's body under g, the render half of `@bendyline/molen-kernel/aircraft` |
71
71
  | `./instruments` | Named signal expressions and reusable wiring for calibrated dials, altimeters, attitude indicators, annunciators and seven-segment readouts; geometry stays in each model |
72
72
  | `./navigation` | `OrbitController`, `FlyController`, `WalkController` + `WalkCollision`, `FollowController`, `NavigationInputSource` (keys, gamepad, pointer gestures) and `createTouchJoystick` — camera navigation for `createViewer` hosts |
73
73
  | `./markers` | `createMarkerLayer`, `composeMarkerImage`, `projectWorldToScreen` — screen-sized, ground-snapped, pickable world markers such as photo pins |
@@ -1,4 +1,4 @@
1
- import { a as VehicleCameraPose, c as aircraftObstacleContacts, i as VehicleCameraOptions, n as VehicleInteriorVisual, s as AircraftObstacleScene } from "./vehicle-interior-B8TpzTAx.mjs";
1
+ import { _ as AircraftObstacleScene, a as VehicleCameraPose, c as PilotMotion, d as PilotMotionOverrides, f as PilotMotionPose, g as pilotMotionTuning, h as pilotMotionSample, i as VehicleCameraOptions, l as PilotMotionAxisTuning, m as PilotMotionTuning, n as VehicleInteriorVisual, p as PilotMotionSample, s as DEFAULT_PILOT_MOTION, u as PilotMotionHeadTuning, v as aircraftObstacleContacts } from "./vehicle-interior-XC2tAySI.mjs";
2
2
  import { n as ModelSignals, t as ModelSignalVisual } from "./model-signals-BpeXhsim.mjs";
3
3
  import { AircraftInputData, AircraftSpec, AircraftStateData, LiveryData } from "@bendyline/molen-schema";
4
4
  import * as THREE from "three";
@@ -89,12 +89,22 @@ interface AircraftVisual {
89
89
  animation?: ModelSignalVisual;
90
90
  update(state: AircraftStateData, input: AircraftInputData, altitude: number, signals?: ModelSignals, timeSeconds?: number): void;
91
91
  /**
92
- * The camera, in the coordinates of `object.position`. Cabin nodes (the spec's interior) are
93
- * drawn only near it: from farther away a cockpit is a few pixels behind the canopy, yet it held
94
- * most of an aircraft's draw calls, and as many again in the shadow pass. Boarded and chase
95
- * views are always near enough.
92
+ * The camera, in the coordinates of `object.position`. Cabin nodes (the spec's interior and the
93
+ * generated flight controls) are drawn only near it: from farther away a cockpit is a few pixels
94
+ * behind the canopy, yet it held most of an aircraft's draw calls, and as many again in the
95
+ * shadow pass. Boarded and chase views are always near enough, but within the cabin a part too
96
+ * small to see from the camera (CABIN_DETAIL_ANGLE) leaves the frame through its render layers,
97
+ * so a binding's or damage's own `visible` is never overridden.
96
98
  */
97
99
  updateView(camera: readonly [number, number, number]): void;
100
+ /**
101
+ * The sun shadow map's texel size in meters (`Renderer.shadowTexelSize`) for the aircraft a view
102
+ * is built around: the one flown or followed. Hosts pass `undefined` for every other aircraft.
103
+ * While texels are too coarse to resolve the aircraft's own parts (over 0.15 m), it casts no
104
+ * sun shadow until they are 0.12 m or finer. Its shadows on itself and on the ground below go,
105
+ * and it still receives shadows from terrain, buildings and clouds.
106
+ */
107
+ updateShadows(texel: number | undefined): void;
98
108
  dispose(): void;
99
109
  }
100
110
  /**
@@ -112,4 +122,4 @@ declare function aircraftCameraPose(transform: {
112
122
  rot: [number, number, number, number];
113
123
  }, spec: AircraftSpec, options: VehicleCameraOptions): AircraftCameraPose;
114
124
  //#endregion
115
- export { AircraftCameraPose, AircraftCockpit, AircraftCockpitControl, AircraftCockpitPointer, AircraftCockpitPointerOptions, AircraftCockpitSession, AircraftControlAction, AircraftControlChange, AircraftControlNode, AircraftObstacleScene, AircraftPointerAxes, AircraftVisual, aircraftCameraPose, aircraftControlValue, aircraftObstacleContacts, applyAircraftControl, bindAircraftCockpitPointer, createAircraftCockpit, createAircraftVisual };
125
+ export { AircraftCameraPose, AircraftCockpit, AircraftCockpitControl, AircraftCockpitPointer, AircraftCockpitPointerOptions, AircraftCockpitSession, AircraftControlAction, AircraftControlChange, AircraftControlNode, AircraftObstacleScene, AircraftPointerAxes, AircraftVisual, DEFAULT_PILOT_MOTION, PilotMotion, PilotMotionAxisTuning, PilotMotionHeadTuning, PilotMotionOverrides, PilotMotionPose, PilotMotionSample, PilotMotionTuning, aircraftCameraPose, aircraftControlValue, aircraftObstacleContacts, applyAircraftControl, bindAircraftCockpitPointer, createAircraftCockpit, createAircraftVisual, pilotMotionSample, pilotMotionTuning };