@woosh/meep-engine 3.80.2 → 3.81.0

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 (200) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/build/bundle-worker-terrain.js +1 -1
  3. package/editor/Editor.d.ts +10 -2
  4. package/editor/Editor.d.ts.map +1 -1
  5. package/editor/Editor.js +33 -23
  6. package/editor/EditorCameraNavigation.d.ts +3 -4
  7. package/editor/EditorCameraNavigation.d.ts.map +1 -1
  8. package/editor/EditorCameraNavigation.js +29 -8
  9. package/editor/prototypeEditorShell.d.ts.map +1 -1
  10. package/editor/prototypeEditorShell.js +10 -2
  11. package/editor/tools/GridPaintTool.d.ts.map +1 -1
  12. package/editor/tools/GridPaintTool.js +12 -7
  13. package/package.json +1 -1
  14. package/src/core/geom/3d/quaternion/quat3_slerp.d.ts +25 -0
  15. package/src/core/geom/3d/quaternion/quat3_slerp.d.ts.map +1 -0
  16. package/src/core/geom/3d/quaternion/quat3_slerp.js +66 -0
  17. package/src/core/geom/3d/topology/struct/binary/query/bt_face_cluster_compute_normal_bounding_cone.d.ts.map +1 -1
  18. package/src/core/geom/3d/topology/struct/binary/query/bt_face_cluster_compute_normal_bounding_cone.js +9 -5
  19. package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_compute_bounding_sphere.d.ts +3 -3
  20. package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_compute_bounding_sphere.d.ts.map +1 -1
  21. package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_compute_bounding_sphere.js +5 -14
  22. package/src/core/geom/packing/miniball/Miniball.d.ts +8 -181
  23. package/src/core/geom/packing/miniball/Miniball.d.ts.map +1 -1
  24. package/src/core/geom/packing/miniball/Miniball.js +10 -452
  25. package/src/core/geom/packing/miniball/PointSet.d.ts +13 -39
  26. package/src/core/geom/packing/miniball/PointSet.d.ts.map +1 -1
  27. package/src/core/geom/packing/miniball/PointSet.js +14 -54
  28. package/src/core/geom/packing/sphere_compute_bounding_of_points.d.ts +20 -0
  29. package/src/core/geom/packing/sphere_compute_bounding_of_points.d.ts.map +1 -0
  30. package/src/core/geom/packing/sphere_compute_bounding_of_points.js +66 -0
  31. package/src/core/geom/packing/sphere_compute_bounding_of_spheres.d.ts.map +1 -1
  32. package/src/core/geom/packing/sphere_compute_bounding_of_spheres.js +0 -1
  33. package/src/core/math/exponential_approach.d.ts +23 -0
  34. package/src/core/math/exponential_approach.d.ts.map +1 -0
  35. package/src/core/math/exponential_approach.js +31 -0
  36. package/src/core/math/physics/spring/Spring.d.ts.map +1 -0
  37. package/src/core/math/physics/spring/criticallyDampedSpring.d.ts.map +1 -0
  38. package/src/core/math/physics/spring/dampedSpringStep.d.ts.map +1 -0
  39. package/src/engine/EngineHarness.d.ts +1 -3
  40. package/src/engine/EngineHarness.d.ts.map +1 -1
  41. package/src/engine/EngineHarness.js +13 -10
  42. package/src/engine/control/first-person/FirstPersonPlayerController.d.ts +9 -15
  43. package/src/engine/control/first-person/FirstPersonPlayerController.d.ts.map +1 -1
  44. package/src/engine/control/first-person/FirstPersonPlayerController.js +9 -10
  45. package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts +68 -14
  46. package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
  47. package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.js +196 -184
  48. package/src/engine/ecs/gui/hud/testHudEdgeStick.js +4 -2
  49. package/src/engine/ecs/parent/parent_entity_root_of.d.ts +11 -0
  50. package/src/engine/ecs/parent/parent_entity_root_of.d.ts.map +1 -0
  51. package/src/engine/ecs/parent/parent_entity_root_of.js +32 -0
  52. package/src/engine/ecs/terrain/util/loadVisibleTerrainTiles.js +130 -130
  53. package/src/engine/graphics/camera/makeOrbitalCameraController.d.ts +3 -2
  54. package/src/engine/graphics/camera/makeOrbitalCameraController.d.ts.map +1 -1
  55. package/src/engine/graphics/camera/makeOrbitalCameraController.js +18 -11
  56. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.d.ts +4 -5
  57. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.d.ts.map +1 -1
  58. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.js +6 -6
  59. package/src/engine/graphics/camera/rig/CameraRig.d.ts +55 -0
  60. package/src/engine/graphics/camera/rig/CameraRig.d.ts.map +1 -0
  61. package/src/engine/graphics/camera/rig/CameraRig.js +65 -0
  62. package/src/engine/graphics/camera/rig/CameraRigContext.d.ts +58 -0
  63. package/src/engine/graphics/camera/rig/CameraRigContext.d.ts.map +1 -0
  64. package/src/engine/graphics/camera/rig/CameraRigContext.js +51 -0
  65. package/src/engine/graphics/camera/rig/CameraRigDriver.d.ts +36 -0
  66. package/src/engine/graphics/camera/rig/CameraRigDriver.d.ts.map +1 -0
  67. package/src/engine/graphics/camera/rig/CameraRigDriver.js +39 -0
  68. package/src/engine/graphics/camera/rig/CameraRigSystem.d.ts +30 -0
  69. package/src/engine/graphics/camera/rig/CameraRigSystem.d.ts.map +1 -0
  70. package/src/engine/graphics/camera/rig/CameraRigSystem.js +81 -0
  71. package/src/engine/graphics/camera/rig/CameraState.d.ts +59 -0
  72. package/src/engine/graphics/camera/rig/CameraState.d.ts.map +1 -0
  73. package/src/engine/graphics/camera/rig/CameraState.js +76 -0
  74. package/src/engine/graphics/camera/rig/camera_rig_output.d.ts +17 -0
  75. package/src/engine/graphics/camera/rig/camera_rig_output.d.ts.map +1 -0
  76. package/src/engine/graphics/camera/rig/camera_rig_output.js +80 -0
  77. package/src/engine/graphics/camera/rig/camera_rig_update.d.ts +38 -0
  78. package/src/engine/graphics/camera/rig/camera_rig_update.d.ts.map +1 -0
  79. package/src/engine/graphics/camera/rig/camera_rig_update.js +102 -0
  80. package/src/engine/graphics/camera/rig/camera_state_read_entity.d.ts +17 -0
  81. package/src/engine/graphics/camera/rig/camera_state_read_entity.d.ts.map +1 -0
  82. package/src/engine/graphics/camera/rig/camera_state_read_entity.js +71 -0
  83. package/src/engine/graphics/camera/rig/drivers/CameraBlendDriver.d.ts +95 -0
  84. package/src/engine/graphics/camera/rig/drivers/CameraBlendDriver.d.ts.map +1 -0
  85. package/src/engine/graphics/camera/rig/drivers/CameraBlendDriver.js +290 -0
  86. package/src/engine/graphics/camera/rig/drivers/CameraCollideDriver.d.ts +37 -0
  87. package/src/engine/graphics/camera/rig/drivers/CameraCollideDriver.d.ts.map +1 -0
  88. package/src/engine/graphics/camera/rig/drivers/CameraCollideDriver.js +158 -0
  89. package/src/engine/graphics/camera/rig/drivers/CameraFollowDriver.d.ts +28 -0
  90. package/src/engine/graphics/camera/rig/drivers/CameraFollowDriver.d.ts.map +1 -0
  91. package/src/engine/graphics/camera/rig/drivers/CameraFollowDriver.js +66 -0
  92. package/src/engine/graphics/camera/rig/drivers/CameraFovDriver.d.ts +29 -0
  93. package/src/engine/graphics/camera/rig/drivers/CameraFovDriver.d.ts.map +1 -0
  94. package/src/engine/graphics/camera/rig/drivers/CameraFovDriver.js +65 -0
  95. package/src/engine/graphics/camera/rig/drivers/CameraImpulseDriver.d.ts +113 -0
  96. package/src/engine/graphics/camera/rig/drivers/CameraImpulseDriver.d.ts.map +1 -0
  97. package/src/engine/graphics/camera/rig/drivers/CameraImpulseDriver.js +442 -0
  98. package/src/engine/graphics/camera/rig/drivers/CameraLookAtDriver.d.ts +32 -0
  99. package/src/engine/graphics/camera/rig/drivers/CameraLookAtDriver.d.ts.map +1 -0
  100. package/src/engine/graphics/camera/rig/drivers/CameraLookAtDriver.js +78 -0
  101. package/src/engine/graphics/camera/rig/drivers/CameraOffsetDriver.d.ts +36 -0
  102. package/src/engine/graphics/camera/rig/drivers/CameraOffsetDriver.d.ts.map +1 -0
  103. package/src/engine/graphics/camera/rig/drivers/CameraOffsetDriver.js +54 -0
  104. package/src/engine/graphics/camera/rig/drivers/CameraOffsetFrame.d.ts +10 -0
  105. package/src/engine/graphics/camera/rig/drivers/CameraOffsetFrame.d.ts.map +1 -0
  106. package/src/engine/graphics/camera/rig/drivers/CameraOffsetFrame.js +22 -0
  107. package/src/engine/graphics/camera/rig/drivers/CameraOrbitDriver.d.ts +182 -0
  108. package/src/engine/graphics/camera/rig/drivers/CameraOrbitDriver.d.ts.map +1 -0
  109. package/src/engine/graphics/camera/rig/drivers/CameraOrbitDriver.js +455 -0
  110. package/src/engine/graphics/camera/rig/drivers/CameraPositionDriver.d.ts +31 -0
  111. package/src/engine/graphics/camera/rig/drivers/CameraPositionDriver.d.ts.map +1 -0
  112. package/src/engine/graphics/camera/rig/drivers/CameraPositionDriver.js +57 -0
  113. package/src/engine/graphics/camera/rig/drivers/CameraShakeDriver.d.ts +62 -0
  114. package/src/engine/graphics/camera/rig/drivers/CameraShakeDriver.d.ts.map +1 -0
  115. package/src/engine/graphics/camera/rig/drivers/CameraShakeDriver.js +174 -0
  116. package/src/engine/graphics/camera/rig/drivers/CameraSmoothDriver.d.ts +29 -0
  117. package/src/engine/graphics/camera/rig/drivers/CameraSmoothDriver.d.ts.map +1 -0
  118. package/src/engine/graphics/camera/rig/drivers/CameraSmoothDriver.js +82 -0
  119. package/src/engine/graphics/camera/rig/drivers/CameraYawPitchRollDriver.d.ts +40 -0
  120. package/src/engine/graphics/camera/rig/drivers/CameraYawPitchRollDriver.d.ts.map +1 -0
  121. package/src/engine/graphics/camera/rig/drivers/CameraYawPitchRollDriver.js +66 -0
  122. package/src/engine/graphics/camera/rig/drivers/camera_state_add_offset.d.ts +22 -0
  123. package/src/engine/graphics/camera/rig/drivers/camera_state_add_offset.d.ts.map +1 -0
  124. package/src/engine/graphics/camera/rig/drivers/camera_state_add_offset.js +81 -0
  125. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts +6 -131
  126. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts.map +1 -1
  127. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.js +4 -378
  128. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.d.ts +4 -2
  129. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.d.ts.map +1 -1
  130. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.js +16 -27
  131. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.d.ts +4 -0
  132. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.d.ts.map +1 -1
  133. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.js +4 -0
  134. package/src/engine/graphics/ecs/light/Light.d.ts +10 -5
  135. package/src/engine/graphics/ecs/light/Light.d.ts.map +1 -1
  136. package/src/engine/graphics/ecs/light/Light.js +15 -24
  137. package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.d.ts +0 -4
  138. package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.d.ts.map +1 -1
  139. package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.js +12 -11
  140. package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.d.ts.map +1 -1
  141. package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.js +5 -5
  142. package/src/engine/graphics3/LightSystem.js +0 -3
  143. package/src/engine/input/ecs/controllers/KeyboardCameraController.d.ts +2 -2
  144. package/src/engine/input/ecs/controllers/KeyboardCameraController.d.ts.map +1 -1
  145. package/src/engine/input/ecs/controllers/KeyboardCameraController.js +3 -3
  146. package/src/engine/physics/ecs/ContactProbeSystem.d.ts.map +1 -1
  147. package/src/engine/physics/ecs/ContactProbeSystem.js +3 -25
  148. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  149. package/src/shade/playground/foliage_wind/foliage_world.d.ts.map +1 -1
  150. package/src/shade/playground/foliage_wind/foliage_world.js +0 -1
  151. package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
  152. package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
  153. package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
  154. package/src/shade/renderer/camera/orbital/OrbitalCameraController.d.ts +4 -4
  155. package/src/shade/renderer/camera/orbital/OrbitalCameraController.d.ts.map +1 -1
  156. package/src/shade/renderer/camera/orbital/OrbitalCameraController.js +26 -11
  157. package/src/shade/renderer/geometry/Geometry.d.ts.map +1 -1
  158. package/src/shade/renderer/geometry/Geometry.js +2 -11
  159. package/src/shade/renderer/geometry/virtual/build/sphere/vgeo_bounding_sphere.d.ts.map +1 -1
  160. package/src/shade/renderer/geometry/virtual/build/sphere/vgeo_bounding_sphere.js +3 -6
  161. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  162. package/src/core/geom/packing/miniball/Quality.d.ts +0 -92
  163. package/src/core/geom/packing/miniball/Quality.d.ts.map +0 -1
  164. package/src/core/geom/packing/miniball/Quality.js +0 -114
  165. package/src/core/geom/packing/miniball/Subspan.d.ts +0 -191
  166. package/src/core/geom/packing/miniball/Subspan.d.ts.map +0 -1
  167. package/src/core/geom/packing/miniball/Subspan.js +0 -529
  168. package/src/core/geom/packing/miniball/miniball_compute_quality.d.ts +0 -10
  169. package/src/core/geom/packing/miniball/miniball_compute_quality.d.ts.map +0 -1
  170. package/src/core/geom/packing/miniball/miniball_compute_quality.js +0 -60
  171. package/src/engine/control/first-person/composer/EyeOffsetStack.d.ts +0 -146
  172. package/src/engine/control/first-person/composer/EyeOffsetStack.d.ts.map +0 -1
  173. package/src/engine/control/first-person/composer/EyeOffsetStack.js +0 -395
  174. package/src/engine/control/first-person/math/Spring.d.ts.map +0 -1
  175. package/src/engine/control/first-person/math/criticallyDampedSpring.d.ts.map +0 -1
  176. package/src/engine/control/first-person/math/dampedSpringStep.d.ts.map +0 -1
  177. package/src/engine/graphics/camera/CameraShake.d.ts +0 -32
  178. package/src/engine/graphics/camera/CameraShake.d.ts.map +0 -1
  179. package/src/engine/graphics/camera/CameraShake.js +0 -68
  180. package/src/engine/graphics/camera/CameraShakeBehavior.d.ts +0 -41
  181. package/src/engine/graphics/camera/CameraShakeBehavior.d.ts.map +0 -1
  182. package/src/engine/graphics/camera/CameraShakeBehavior.js +0 -91
  183. package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts +0 -19
  184. package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts.map +0 -1
  185. package/src/engine/graphics/camera/CameraShakeTraumaBehavior.js +0 -37
  186. package/src/engine/graphics/ecs/camera/filter/setup_filtered_camera_controller.d.ts +0 -21
  187. package/src/engine/graphics/ecs/camera/filter/setup_filtered_camera_controller.d.ts.map +0 -1
  188. package/src/engine/graphics/ecs/camera/filter/setup_filtered_camera_controller.js +0 -79
  189. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts +0 -28
  190. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts.map +0 -1
  191. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.js +0 -100
  192. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.d.ts +0 -36
  193. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.d.ts.map +0 -1
  194. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.js +0 -160
  195. /package/src/{engine/control/first-person/math → core/math/physics/spring}/Spring.d.ts +0 -0
  196. /package/src/{engine/control/first-person/math → core/math/physics/spring}/Spring.js +0 -0
  197. /package/src/{engine/control/first-person/math → core/math/physics/spring}/criticallyDampedSpring.d.ts +0 -0
  198. /package/src/{engine/control/first-person/math → core/math/physics/spring}/criticallyDampedSpring.js +0 -0
  199. /package/src/{engine/control/first-person/math → core/math/physics/spring}/dampedSpringStep.d.ts +0 -0
  200. /package/src/{engine/control/first-person/math → core/math/physics/spring}/dampedSpringStep.js +0 -0
@@ -0,0 +1,182 @@
1
+ /**
2
+ * The orientation an orbit looks along. The pose is built from this and the distance, so anything that
3
+ * needs the view's own axes takes them from here rather than from whatever object a renderer keeps.
4
+ *
5
+ * @param {Quaternion} result
6
+ * @param {CameraOrbitDriver} orbit
7
+ */
8
+ export function camera_orbit_view_rotation(result: Quaternion, orbit: CameraOrbitDriver): void;
9
+ /**
10
+ * Apply an orbit to a camera state: the pivot is the incoming position plus the target, the rotation is
11
+ * the orbit's view rotation, and the eye stands the distance back from the pivot along it, the distance
12
+ * held within the orbit's range.
13
+ *
14
+ * @param {Float64Array} state {@link CameraState}, read and written in place
15
+ * @param {CameraOrbitDriver} orbit
16
+ */
17
+ export function camera_orbit_apply(state: Float64Array, orbit: CameraOrbitDriver): void;
18
+ /**
19
+ * Move an orbit's target across the view plane it is looking at, by a displacement given in viewport
20
+ * pixels; right and down are positive.
21
+ *
22
+ * Handlers pass where the pointer *was* less where it *is*, so the target travels against the drag and
23
+ * the world under the pointer comes with it.
24
+ *
25
+ * **The viewer's right is the negated X axis of the view rotation**, which is the one thing here that is
26
+ * easy to invert silently: meep's forward is +Z with up +Y, so a viewer facing along forward has world
27
+ * −X on their right.
28
+ *
29
+ * @param {Vector2} delta viewport pixels
30
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
31
+ * @param {number} viewport_height_px the perspective camera is fitted to height alone, so width plays
32
+ * no part
33
+ * @param {number} fov vertical field of view, in degrees
34
+ * @param {Vector3} [multiplier] per-axis scale on the world displacement; zero Y keeps the target on
35
+ * the ground
36
+ */
37
+ export function camera_orbit_pan(delta: Vector2, orbit: CameraOrbitDriver, viewport_height_px: number, fov: number, multiplier?: Vector3): void;
38
+ /**
39
+ * Move an orbit's target `distance` world units along where its view faces: `right` and `forward` pick
40
+ * the direction in the view's own frame, so a target can be flown up or down a slope. A diagonal
41
+ * travels the same distance as a straight move.
42
+ *
43
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
44
+ * @param {number} right −1 to 1, positive to the viewer's right
45
+ * @param {number} forward −1 to 1, positive into the screen
46
+ * @param {number} distance world units
47
+ */
48
+ export function camera_orbit_truck_in_view(orbit: CameraOrbitDriver, right: number, forward: number, distance: number): void;
49
+ /**
50
+ * Move an orbit's target `distance` world units across the ground, along the way its view is turned:
51
+ * `forward` is the view's heading with the pitch taken out, so it keeps its full speed however steeply
52
+ * the view looks down, straight down included, and never moves the target off the ground. A diagonal
53
+ * travels the same distance as a straight move.
54
+ *
55
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
56
+ * @param {number} right −1 to 1, positive to the viewer's right
57
+ * @param {number} forward −1 to 1, positive along the view's heading
58
+ * @param {number} distance world units
59
+ */
60
+ export function camera_orbit_truck_on_ground(orbit: CameraOrbitDriver, right: number, forward: number, distance: number): void;
61
+ /**
62
+ * Set an orbit from a camera transform: the eye where the transform is, looking where it looks, at a
63
+ * target `distance` ahead.
64
+ *
65
+ * @param {CameraOrbitDriver} orbit
66
+ * @param {Transform64} transform
67
+ * @param {number} [distance]
68
+ */
69
+ export function camera_orbit_from_transform(orbit: CameraOrbitDriver, transform: Transform64, distance?: number): void;
70
+ /**
71
+ * A camera that swings around a point: the target, the view's yaw, pitch and roll, and how far back
72
+ * from the target the eye stands. The pose players and designers think in, and what pointer and
73
+ * keyboard navigation write (see {@link OrbitalCameraRig}).
74
+ *
75
+ * As a driver it is relative to the position it is handed: the pivot is that position plus
76
+ * {@link target}. First in a rig that position is the origin, so the target is in world space; after a
77
+ * follow driver the orbit swings around whatever is followed.
78
+ *
79
+ * @author Alex Goldring
80
+ * @copyright Company Named Limited (c) 2026
81
+ */
82
+ export class CameraOrbitDriver extends CameraRigDriver {
83
+ /**
84
+ * @param {Object} j
85
+ * @returns {CameraOrbitDriver}
86
+ */
87
+ static fromJSON(j: any): CameraOrbitDriver;
88
+ /**
89
+ * The point orbited, relative to the incoming position.
90
+ * @type {Vector3}
91
+ */
92
+ target: Vector3;
93
+ /**
94
+ * Radians; 0 looks along the horizon, π/2 straight down.
95
+ * @type {number}
96
+ */
97
+ pitch: number;
98
+ /**
99
+ * Radians, about world up.
100
+ * @type {number}
101
+ */
102
+ yaw: number;
103
+ /**
104
+ * Radians, about the view direction.
105
+ * @type {number}
106
+ */
107
+ roll: number;
108
+ /**
109
+ * How far back from the target the eye stands, held within {@link distanceMin} and
110
+ * {@link distanceMax} when applied.
111
+ * @type {number}
112
+ */
113
+ distance: number;
114
+ /**
115
+ * @type {number}
116
+ */
117
+ distanceMin: number;
118
+ /**
119
+ * @type {number}
120
+ */
121
+ distanceMax: number;
122
+ /**
123
+ * Set target, rotation and distance from an eye and the target it looks at.
124
+ *
125
+ * `eye` must not coincide with `target`, and `up` must not be parallel to the direction between
126
+ * them — a degenerate basis has no angles to report and the caller gets an arbitrary one.
127
+ *
128
+ * @param {Vector3|ArrayLike<number>} eye
129
+ * @param {Vector3|ArrayLike<number>} target
130
+ * @param {Vector3} [up]
131
+ */
132
+ setFromEyeAndTarget(eye: Vector3 | ArrayLike<number>, target: Vector3 | ArrayLike<number>, up?: Vector3): void;
133
+ /**
134
+ * @param {CameraOrbitDriver} other
135
+ * @returns {boolean}
136
+ */
137
+ equals(other: CameraOrbitDriver): boolean;
138
+ /**
139
+ * @param {CameraOrbitDriver} other
140
+ */
141
+ copy(other: CameraOrbitDriver): void;
142
+ /**
143
+ * @returns {CameraOrbitDriver}
144
+ */
145
+ clone(): CameraOrbitDriver;
146
+ /**
147
+ * Every field blended linearly, angles included: a blend between two orbits of the same target
148
+ * swings around it.
149
+ *
150
+ * @param {CameraOrbitDriver} a
151
+ * @param {CameraOrbitDriver} b
152
+ * @param {number} t
153
+ */
154
+ lerp(a: CameraOrbitDriver, b: CameraOrbitDriver, t: number): void;
155
+ toJSON(): {
156
+ target: {
157
+ x: number;
158
+ y: number;
159
+ z: number;
160
+ };
161
+ pitch: number;
162
+ yaw: number;
163
+ roll: number;
164
+ distance: number;
165
+ distanceMin: number;
166
+ distanceMax: number;
167
+ };
168
+ fromJSON({ distance, distanceMin, distanceMax, pitch, yaw, roll, target, }: {
169
+ distance?: number;
170
+ distanceMin?: number;
171
+ distanceMax?: number;
172
+ pitch?: number;
173
+ yaw?: number;
174
+ roll?: number;
175
+ target?: Vector3;
176
+ }): void;
177
+ }
178
+ export type CameraRigContext = import("../CameraRigContext.js").CameraRigContext;
179
+ import Quaternion from "../../../../../core/geom/Quaternion.js";
180
+ import Vector3 from "../../../../../core/geom/Vector3.js";
181
+ import { CameraRigDriver } from "../CameraRigDriver.js";
182
+ //# sourceMappingURL=CameraOrbitDriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CameraOrbitDriver.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/camera/rig/drivers/CameraOrbitDriver.js"],"names":[],"mappings":"AAoQA;;;;;;GAMG;AACH,mDAHW,UAAU,SACV,iBAAiB,QAI3B;AAED;;;;;;;GAOG;AACH,0CAHW,YAAY,SACZ,iBAAiB,QA2B3B;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wDAPW,iBAAiB,sBACjB,MAAM,OAEN,MAAM,eACN,OAAO,QA2BjB;AAED;;;;;;;;;GASG;AACH,kDALW,iBAAiB,SACjB,MAAM,WACN,MAAM,YACN,MAAM,QAMhB;AAED;;;;;;;;;;GAUG;AACH,oDALW,iBAAiB,SACjB,MAAM,WACN,MAAM,YACN,MAAM,QAMhB;AAmCD;;;;;;;GAOG;AACH,mDAJW,iBAAiB,qCAEjB,MAAM,QAiBhB;AApaD;;;;;;;;;;;GAWG;AACH;IAyMI;;;OAGG;IACH,yBAFa,iBAAiB,CAQ7B;IAlND;;;OAGG;IACH,QAFU,OAAO,CAEM;IAEvB;;;OAGG;IACH,OAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,KAFU,MAAM,CAER;IAER;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;;OAIG;IACH,UAFU,MAAM,CAEH;IAEb;;OAEG;IACH,aAFU,MAAM,CAEA;IAEhB;;OAEG;IACH,aAFU,MAAM,CAEE;IAUlB;;;;;;;;;OASG;IACH,yBAJW,OAAO,GAAC,UAAU,MAAM,CAAC,UACzB,OAAO,GAAC,UAAU,MAAM,CAAC,OACzB,OAAO,QA0CjB;IAED;;;OAGG;IACH,cAHW,iBAAiB,GACf,OAAO,CAWnB;IAED;;OAEG;IACH,YAFW,iBAAiB,QAY3B;IAED;;OAEG;IACH,SAFa,iBAAiB,CAQ7B;IAED;;;;;;;OAOG;IACH,QAJW,iBAAiB,KACjB,iBAAiB,KACjB,MAAM,QAahB;IAED;;;;;;;;;;;;MAYC;IAED;;;;;;;;aAqBC;CAaJ;+BAlPa,OAAO,wBAAwB,EAAE,gBAAgB;uBAVxC,wCAAwC;oBAG3C,qCAAqC;gCAIzB,uBAAuB"}
@@ -0,0 +1,455 @@
1
+ import { assert } from "../../../../../core/assert.js";
2
+ import { m4_euler_angles } from "../../../../../core/geom/3d/mat4/m4_euler_angles.js";
3
+ import {
4
+ m4_from_rotation_translation_scale_scalar
5
+ } from "../../../../../core/geom/3d/mat4/m4_from_rotation_translation_scale_scalar.js";
6
+ import { normalize_angle_rad } from "../../../../../core/geom/normalize_angle_rad.js";
7
+ import Quaternion from "../../../../../core/geom/Quaternion.js";
8
+ import { v3_distance } from "../../../../../core/geom/vec3/v3_distance.js";
9
+ import { v3_quaternion_apply } from "../../../../../core/geom/vec3/v3_quaternion_apply.js";
10
+ import Vector3 from "../../../../../core/geom/Vector3.js";
11
+ import { clamp } from "../../../../../core/math/clamp.js";
12
+ import { lerp } from "../../../../../core/math/lerp.js";
13
+ import { max2 } from "../../../../../core/math/max2.js";
14
+ import { CameraRigDriver } from "../CameraRigDriver.js";
15
+ import { CAMERA_STATE_PIVOT, CAMERA_STATE_POSITION, CAMERA_STATE_ROTATION } from "../CameraState.js";
16
+
17
+ /** @typedef {import("../CameraRigContext.js").CameraRigContext} CameraRigContext */
18
+
19
+ const m4 = [];
20
+ const angles = [];
21
+
22
+ const q_look = new Quaternion();
23
+ const v3_forward = new Vector3();
24
+
25
+ const q_view = new Quaternion();
26
+
27
+ const v3_view_right = new Vector3();
28
+ const v3_view_up = new Vector3();
29
+ const v3_view_forward = new Vector3();
30
+
31
+ const scratch_v3 = new Float64Array(3);
32
+
33
+ const deg2_in_rad = Math.PI / 360;
34
+
35
+ /**
36
+ * A camera that swings around a point: the target, the view's yaw, pitch and roll, and how far back
37
+ * from the target the eye stands. The pose players and designers think in, and what pointer and
38
+ * keyboard navigation write (see {@link OrbitalCameraRig}).
39
+ *
40
+ * As a driver it is relative to the position it is handed: the pivot is that position plus
41
+ * {@link target}. First in a rig that position is the origin, so the target is in world space; after a
42
+ * follow driver the orbit swings around whatever is followed.
43
+ *
44
+ * @author Alex Goldring
45
+ * @copyright Company Named Limited (c) 2026
46
+ */
47
+ export class CameraOrbitDriver extends CameraRigDriver {
48
+ /**
49
+ * The point orbited, relative to the incoming position.
50
+ * @type {Vector3}
51
+ */
52
+ target = new Vector3();
53
+
54
+ /**
55
+ * Radians; 0 looks along the horizon, π/2 straight down.
56
+ * @type {number}
57
+ */
58
+ pitch = 0;
59
+
60
+ /**
61
+ * Radians, about world up.
62
+ * @type {number}
63
+ */
64
+ yaw = 0;
65
+
66
+ /**
67
+ * Radians, about the view direction.
68
+ * @type {number}
69
+ */
70
+ roll = 0;
71
+
72
+ /**
73
+ * How far back from the target the eye stands, held within {@link distanceMin} and
74
+ * {@link distanceMax} when applied.
75
+ * @type {number}
76
+ */
77
+ distance = 0;
78
+
79
+ /**
80
+ * @type {number}
81
+ */
82
+ distanceMin = 1;
83
+
84
+ /**
85
+ * @type {number}
86
+ */
87
+ distanceMax = 200;
88
+
89
+ /**
90
+ * @param {Float64Array} state
91
+ * @param {CameraRigContext} context
92
+ */
93
+ update(state, context) {
94
+ camera_orbit_apply(state, this);
95
+ }
96
+
97
+ /**
98
+ * Set target, rotation and distance from an eye and the target it looks at.
99
+ *
100
+ * `eye` must not coincide with `target`, and `up` must not be parallel to the direction between
101
+ * them — a degenerate basis has no angles to report and the caller gets an arbitrary one.
102
+ *
103
+ * @param {Vector3|ArrayLike<number>} eye
104
+ * @param {Vector3|ArrayLike<number>} target
105
+ * @param {Vector3} [up]
106
+ */
107
+ setFromEyeAndTarget(eye, target, up = Vector3.up) {
108
+
109
+ // index reads accept a Vector3 or a transform's translation view alike
110
+ v3_forward.set(
111
+ target[0] - eye[0],
112
+ target[1] - eye[1],
113
+ target[2] - eye[2]
114
+ );
115
+
116
+ q_look.lookRotation(v3_forward, up);
117
+
118
+ m4_from_rotation_translation_scale_scalar(
119
+ m4,
120
+ q_look.x, q_look.y, q_look.z, q_look.w,
121
+ 0, 0, 0,
122
+ 1, 1, 1
123
+ );
124
+
125
+ m4_euler_angles(angles, m4, 2, 1, 0);
126
+
127
+ if (Math.abs(angles[2]) > Math.PI / 2) {
128
+ // The decomposition holds yaw within ±π/2 and, for about half of all views, answers with the
129
+ // view turned over — pitched past the vertical and rolled half a turn. That is the same
130
+ // rotation as the upright one, half a turn of yaw away, which is the pose an orbit expects:
131
+ // pitch within ±π/2 and, for an up of +Y, no roll.
132
+ this.pitch = normalize_angle_rad(angles[2] + Math.PI);
133
+ this.yaw = normalize_angle_rad(Math.PI - angles[1]);
134
+ this.roll = normalize_angle_rad(angles[0] + Math.PI);
135
+ } else {
136
+ this.pitch = angles[2];
137
+ this.yaw = angles[1];
138
+ this.roll = angles[0];
139
+ }
140
+
141
+ this.distance = v3_distance(eye[0], eye[1], eye[2], target[0], target[1], target[2]);
142
+
143
+ // ensure we can maintain this distance
144
+ this.distanceMax = max2(this.distance, this.distanceMax);
145
+
146
+ this.target.set(target[0], target[1], target[2]);
147
+ }
148
+
149
+ /**
150
+ * @param {CameraOrbitDriver} other
151
+ * @returns {boolean}
152
+ */
153
+ equals(other) {
154
+ return this.target.equals(other.target)
155
+ && this.pitch === other.pitch
156
+ && this.yaw === other.yaw
157
+ && this.roll === other.roll
158
+ && this.distance === other.distance
159
+ && this.distanceMin === other.distanceMin
160
+ && this.distanceMax === other.distanceMax
161
+ ;
162
+ }
163
+
164
+ /**
165
+ * @param {CameraOrbitDriver} other
166
+ */
167
+ copy(other) {
168
+ this.target.copy(other.target);
169
+
170
+ this.pitch = other.pitch;
171
+ this.yaw = other.yaw;
172
+ this.roll = other.roll;
173
+
174
+ this.distance = other.distance;
175
+ this.distanceMax = other.distanceMax;
176
+ this.distanceMin = other.distanceMin;
177
+ }
178
+
179
+ /**
180
+ * @returns {CameraOrbitDriver}
181
+ */
182
+ clone() {
183
+ const r = new CameraOrbitDriver();
184
+
185
+ r.copy(this);
186
+
187
+ return r;
188
+ }
189
+
190
+ /**
191
+ * Every field blended linearly, angles included: a blend between two orbits of the same target
192
+ * swings around it.
193
+ *
194
+ * @param {CameraOrbitDriver} a
195
+ * @param {CameraOrbitDriver} b
196
+ * @param {number} t
197
+ */
198
+ lerp(a, b, t) {
199
+ this.target.lerpVectors(a.target, b.target, t);
200
+
201
+ this.pitch = lerp(a.pitch, b.pitch, t);
202
+ this.yaw = lerp(a.yaw, b.yaw, t);
203
+ this.roll = lerp(a.roll, b.roll, t);
204
+
205
+ this.distance = lerp(a.distance, b.distance, t);
206
+
207
+ this.distanceMin = lerp(a.distanceMin, b.distanceMin, t);
208
+ this.distanceMax = lerp(a.distanceMax, b.distanceMax, t);
209
+ }
210
+
211
+ toJSON() {
212
+ return {
213
+ target: this.target.toJSON(),
214
+
215
+ pitch: this.pitch,
216
+ yaw: this.yaw,
217
+ roll: this.roll,
218
+
219
+ distance: this.distance,
220
+ distanceMin: this.distanceMin,
221
+ distanceMax: this.distanceMax
222
+ };
223
+ }
224
+
225
+ fromJSON(
226
+ {
227
+ distance = 0,
228
+ distanceMin = 0,
229
+ distanceMax = 0,
230
+ pitch = 0,
231
+ yaw = 0,
232
+ roll = 0,
233
+ target = Vector3.zero,
234
+ }
235
+ ) {
236
+
237
+ this.distance = distance;
238
+ this.distanceMin = distanceMin;
239
+ this.distanceMax = distanceMax;
240
+
241
+ this.pitch = pitch;
242
+ this.roll = roll;
243
+ this.yaw = yaw;
244
+
245
+ this.target.fromJSON(target);
246
+ }
247
+
248
+ /**
249
+ * @param {Object} j
250
+ * @returns {CameraOrbitDriver}
251
+ */
252
+ static fromJSON(j) {
253
+ const r = new CameraOrbitDriver();
254
+
255
+ r.fromJSON(j);
256
+
257
+ return r;
258
+ }
259
+ }
260
+
261
+ /**
262
+ * The orientation an orbit looks along. The pose is built from this and the distance, so anything that
263
+ * needs the view's own axes takes them from here rather than from whatever object a renderer keeps.
264
+ *
265
+ * @param {Quaternion} result
266
+ * @param {CameraOrbitDriver} orbit
267
+ */
268
+ export function camera_orbit_view_rotation(result, orbit) {
269
+ result.fromEulerAnglesZYX(orbit.pitch, orbit.yaw, orbit.roll);
270
+ }
271
+
272
+ /**
273
+ * Apply an orbit to a camera state: the pivot is the incoming position plus the target, the rotation is
274
+ * the orbit's view rotation, and the eye stands the distance back from the pivot along it, the distance
275
+ * held within the orbit's range.
276
+ *
277
+ * @param {Float64Array} state {@link CameraState}, read and written in place
278
+ * @param {CameraOrbitDriver} orbit
279
+ */
280
+ export function camera_orbit_apply(state, orbit) {
281
+ const distance = clamp(orbit.distance, orbit.distanceMin, orbit.distanceMax);
282
+ const target = orbit.target;
283
+
284
+ const px = state[CAMERA_STATE_POSITION] + target.x;
285
+ const py = state[CAMERA_STATE_POSITION + 1] + target.y;
286
+ const pz = state[CAMERA_STATE_POSITION + 2] + target.z;
287
+
288
+ camera_orbit_view_rotation(q_view, orbit);
289
+
290
+ // the view looks along its +Z
291
+ v3_quaternion_apply(scratch_v3, 0, 0, 0, 1, q_view.x, q_view.y, q_view.z, q_view.w);
292
+
293
+ state[CAMERA_STATE_POSITION] = px - scratch_v3[0] * distance;
294
+ state[CAMERA_STATE_POSITION + 1] = py - scratch_v3[1] * distance;
295
+ state[CAMERA_STATE_POSITION + 2] = pz - scratch_v3[2] * distance;
296
+
297
+ state[CAMERA_STATE_ROTATION] = q_view.x;
298
+ state[CAMERA_STATE_ROTATION + 1] = q_view.y;
299
+ state[CAMERA_STATE_ROTATION + 2] = q_view.z;
300
+ state[CAMERA_STATE_ROTATION + 3] = q_view.w;
301
+
302
+ state[CAMERA_STATE_PIVOT] = px;
303
+ state[CAMERA_STATE_PIVOT + 1] = py;
304
+ state[CAMERA_STATE_PIVOT + 2] = pz;
305
+ }
306
+
307
+ /**
308
+ * @param {Vector3} result
309
+ * @param {Vector3} direction unit length
310
+ * @param {number} distance world units
311
+ * @param {Vector3} multiplier
312
+ */
313
+ function move_along(result, direction, distance, multiplier) {
314
+ result._add(
315
+ direction.x * distance * multiplier.x,
316
+ direction.y * distance * multiplier.y,
317
+ direction.z * distance * multiplier.z
318
+ );
319
+ }
320
+
321
+ /**
322
+ * Move an orbit's target across the view plane it is looking at, by a displacement given in viewport
323
+ * pixels; right and down are positive.
324
+ *
325
+ * Handlers pass where the pointer *was* less where it *is*, so the target travels against the drag and
326
+ * the world under the pointer comes with it.
327
+ *
328
+ * **The viewer's right is the negated X axis of the view rotation**, which is the one thing here that is
329
+ * easy to invert silently: meep's forward is +Z with up +Y, so a viewer facing along forward has world
330
+ * −X on their right.
331
+ *
332
+ * @param {Vector2} delta viewport pixels
333
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
334
+ * @param {number} viewport_height_px the perspective camera is fitted to height alone, so width plays
335
+ * no part
336
+ * @param {number} fov vertical field of view, in degrees
337
+ * @param {Vector3} [multiplier] per-axis scale on the world displacement; zero Y keeps the target on
338
+ * the ground
339
+ */
340
+ export function camera_orbit_pan(delta, orbit, viewport_height_px, fov, multiplier = Vector3.one) {
341
+ assert.isNumber(viewport_height_px, 'viewport_height_px');
342
+ assert.isNumber(fov, 'fov');
343
+
344
+ // half of the fov is center to top of screen
345
+ const d = orbit.distance * Math.tan(fov * deg2_in_rad);
346
+
347
+ const m = 2 * d / viewport_height_px;
348
+
349
+ camera_orbit_view_rotation(q_view, orbit);
350
+
351
+ v3_view_right.copy(Vector3.right);
352
+ v3_view_right.applyQuaternion(q_view);
353
+ v3_view_right.negate();
354
+
355
+ v3_view_up.copy(Vector3.up);
356
+ v3_view_up.applyQuaternion(q_view);
357
+
358
+ const target = orbit.target;
359
+
360
+ move_along(target, v3_view_right, delta.x * m, multiplier);
361
+
362
+ // screen Y runs down the viewport and the view's up runs the other way
363
+ move_along(target, v3_view_up, -delta.y * m, multiplier);
364
+ }
365
+
366
+ /**
367
+ * Move an orbit's target `distance` world units along where its view faces: `right` and `forward` pick
368
+ * the direction in the view's own frame, so a target can be flown up or down a slope. A diagonal
369
+ * travels the same distance as a straight move.
370
+ *
371
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
372
+ * @param {number} right −1 to 1, positive to the viewer's right
373
+ * @param {number} forward −1 to 1, positive into the screen
374
+ * @param {number} distance world units
375
+ */
376
+ export function camera_orbit_truck_in_view(orbit, right, forward, distance) {
377
+ camera_orbit_view_rotation(q_view, orbit);
378
+
379
+ truck_in_rotation(orbit.target, q_view, right, forward, distance);
380
+ }
381
+
382
+ /**
383
+ * Move an orbit's target `distance` world units across the ground, along the way its view is turned:
384
+ * `forward` is the view's heading with the pitch taken out, so it keeps its full speed however steeply
385
+ * the view looks down, straight down included, and never moves the target off the ground. A diagonal
386
+ * travels the same distance as a straight move.
387
+ *
388
+ * @param {CameraOrbitDriver} orbit its {@link CameraOrbitDriver#target} is moved
389
+ * @param {number} right −1 to 1, positive to the viewer's right
390
+ * @param {number} forward −1 to 1, positive along the view's heading
391
+ * @param {number} distance world units
392
+ */
393
+ export function camera_orbit_truck_on_ground(orbit, right, forward, distance) {
394
+ q_view.fromEulerAnglesZYX(0, orbit.yaw, 0);
395
+
396
+ truck_in_rotation(orbit.target, q_view, right, forward, distance);
397
+ }
398
+
399
+ /**
400
+ * @param {Vector3} target
401
+ * @param {Quaternion} rotation
402
+ * @param {number} right
403
+ * @param {number} forward
404
+ * @param {number} distance
405
+ */
406
+ function truck_in_rotation(target, rotation, right, forward, distance) {
407
+ const length = Math.hypot(right, forward);
408
+
409
+ if (length === 0) {
410
+ return;
411
+ }
412
+
413
+ const step = distance / length;
414
+
415
+ v3_view_right.copy(Vector3.right);
416
+ v3_view_right.applyQuaternion(rotation);
417
+
418
+ v3_view_forward.copy(Vector3.forward);
419
+ v3_view_forward.applyQuaternion(rotation);
420
+
421
+ // the viewer's right is the negated X axis
422
+ const along_right = -right * step;
423
+ const along_forward = forward * step;
424
+
425
+ target._add(
426
+ v3_view_right.x * along_right + v3_view_forward.x * along_forward,
427
+ v3_view_right.y * along_right + v3_view_forward.y * along_forward,
428
+ v3_view_right.z * along_right + v3_view_forward.z * along_forward
429
+ );
430
+ }
431
+
432
+ /**
433
+ * Set an orbit from a camera transform: the eye where the transform is, looking where it looks, at a
434
+ * target `distance` ahead.
435
+ *
436
+ * @param {CameraOrbitDriver} orbit
437
+ * @param {Transform64} transform
438
+ * @param {number} [distance]
439
+ */
440
+ export function camera_orbit_from_transform(orbit, transform, distance = 20) {
441
+ v3_quaternion_apply(
442
+ scratch_v3, 0,
443
+ 0, 0, distance,
444
+ transform.rotation_x, transform.rotation_y, transform.rotation_z, transform.rotation_w
445
+ );
446
+
447
+ const ex = transform.translation_x;
448
+ const ey = transform.translation_y;
449
+ const ez = transform.translation_z;
450
+
451
+ orbit.setFromEyeAndTarget(
452
+ [ex, ey, ez],
453
+ [ex + scratch_v3[0], ey + scratch_v3[1], ez + scratch_v3[2]]
454
+ );
455
+ }
@@ -0,0 +1,31 @@
1
+ /** @typedef {import("../CameraRigContext.js").CameraRigContext} CameraRigContext */
2
+ /**
3
+ * Puts the camera, and the pivot with it, at a world position that code writes: for a source that is
4
+ * not an entity, such as a controller's own render-rate position.
5
+ *
6
+ * @author Alex Goldring
7
+ * @copyright Company Named Limited (c) 2026
8
+ */
9
+ export class CameraPositionDriver extends CameraRigDriver {
10
+ /**
11
+ * @type {number}
12
+ */
13
+ x: number;
14
+ /**
15
+ * @type {number}
16
+ */
17
+ y: number;
18
+ /**
19
+ * @type {number}
20
+ */
21
+ z: number;
22
+ /**
23
+ * @param {number} x
24
+ * @param {number} y
25
+ * @param {number} z
26
+ */
27
+ set(x: number, y: number, z: number): void;
28
+ }
29
+ export type CameraRigContext = import("../CameraRigContext.js").CameraRigContext;
30
+ import { CameraRigDriver } from "../CameraRigDriver.js";
31
+ //# sourceMappingURL=CameraPositionDriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CameraPositionDriver.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/camera/rig/drivers/CameraPositionDriver.js"],"names":[],"mappings":"AAGA,oFAAoF;AAEpF;;;;;;GAMG;AACH;IACI;;OAEG;IACH,GAFU,MAAM,CAEV;IAEN;;OAEG;IACH,GAFU,MAAM,CAEV;IAEN;;OAEG;IACH,GAFU,MAAM,CAEV;IAEN;;;;OAIG;IACH,OAJW,MAAM,KACN,MAAM,KACN,MAAM,QAMhB;CAmBJ;+BArDa,OAAO,wBAAwB,EAAE,gBAAgB;gCAH/B,uBAAuB"}