@bendyline/molen-client 0.0.13 → 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";
@@ -97,6 +97,14 @@ interface AircraftVisual {
97
97
  * so a binding's or damage's own `visible` is never overridden.
98
98
  */
99
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;
100
108
  dispose(): void;
101
109
  }
102
110
  /**
@@ -114,4 +122,4 @@ declare function aircraftCameraPose(transform: {
114
122
  rot: [number, number, number, number];
115
123
  }, spec: AircraftSpec, options: VehicleCameraOptions): AircraftCameraPose;
116
124
  //#endregion
117
- 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 };