@pinkaphant/kolmo 0.4.7 → 0.5.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 (506) hide show
  1. package/README.md +39 -93
  2. package/dist/engine/actor.d.ts +13 -0
  3. package/dist/engine/{kolmoGltfLoader.d.ts → gltfLoader.d.ts} +6 -3
  4. package/dist/engine/index.d.ts +8 -17
  5. package/dist/engine/index.js +1270 -27
  6. package/dist/engine/index.js.map +1 -1
  7. package/dist/engine/{kolmoInput.d.ts → input.d.ts} +7 -6
  8. package/dist/engine/surface.d.ts +19 -0
  9. package/dist/engine/{kolmoTraits.d.ts → traits.d.ts} +18 -47
  10. package/dist/engine/vehicle.d.ts +20 -0
  11. package/dist/engine/world.d.ts +76 -0
  12. package/dist/index.d.ts +12 -18
  13. package/dist/index.js +14 -116
  14. package/dist/physics/index.js +1 -131
  15. package/dist/physics-FhWvTBfH.js +424 -0
  16. package/dist/physics-FhWvTBfH.js.map +1 -0
  17. package/package.json +31 -85
  18. package/AGENTS.md +0 -29
  19. package/CLAUDE.md +0 -8
  20. package/bin/kolmo.mjs +0 -561
  21. package/dist/engine/causewayBridge.d.ts +0 -14
  22. package/dist/engine/causewayBridge.js +0 -166
  23. package/dist/engine/causewayBridge.js.map +0 -1
  24. package/dist/engine/islandSettlementMesh.d.ts +0 -26
  25. package/dist/engine/islandSettlementMesh.js +0 -166
  26. package/dist/engine/islandSettlementMesh.js.map +0 -1
  27. package/dist/engine/kolmoActions.d.ts +0 -23
  28. package/dist/engine/kolmoActions.js +0 -179
  29. package/dist/engine/kolmoActions.js.map +0 -1
  30. package/dist/engine/kolmoActor.d.ts +0 -21
  31. package/dist/engine/kolmoActor.js +0 -273
  32. package/dist/engine/kolmoActor.js.map +0 -1
  33. package/dist/engine/kolmoActorHelpers.d.ts +0 -24
  34. package/dist/engine/kolmoActorHelpers.js +0 -64
  35. package/dist/engine/kolmoActorHelpers.js.map +0 -1
  36. package/dist/engine/kolmoBotControl.d.ts +0 -44
  37. package/dist/engine/kolmoBotControl.js +0 -194
  38. package/dist/engine/kolmoBotControl.js.map +0 -1
  39. package/dist/engine/kolmoBotJournal.d.ts +0 -23
  40. package/dist/engine/kolmoBotJournal.js +0 -138
  41. package/dist/engine/kolmoBotJournal.js.map +0 -1
  42. package/dist/engine/kolmoFloatingOrigin.d.ts +0 -17
  43. package/dist/engine/kolmoFloatingOrigin.js +0 -91
  44. package/dist/engine/kolmoFloatingOrigin.js.map +0 -1
  45. package/dist/engine/kolmoGame.d.ts +0 -27
  46. package/dist/engine/kolmoGame.js +0 -83
  47. package/dist/engine/kolmoGame.js.map +0 -1
  48. package/dist/engine/kolmoGltfLoader.js +0 -46
  49. package/dist/engine/kolmoGltfLoader.js.map +0 -1
  50. package/dist/engine/kolmoHud.d.ts +0 -23
  51. package/dist/engine/kolmoHud.js +0 -219
  52. package/dist/engine/kolmoHud.js.map +0 -1
  53. package/dist/engine/kolmoInput.js +0 -165
  54. package/dist/engine/kolmoInput.js.map +0 -1
  55. package/dist/engine/kolmoIsland.d.ts +0 -14
  56. package/dist/engine/kolmoIsland.js +0 -243
  57. package/dist/engine/kolmoIsland.js.map +0 -1
  58. package/dist/engine/kolmoLongDrive.d.ts +0 -12
  59. package/dist/engine/kolmoLongDrive.js +0 -178
  60. package/dist/engine/kolmoLongDrive.js.map +0 -1
  61. package/dist/engine/kolmoPilotMesh.d.ts +0 -6
  62. package/dist/engine/kolmoPilotMesh.js +0 -377
  63. package/dist/engine/kolmoPilotMesh.js.map +0 -1
  64. package/dist/engine/kolmoProcedural.d.ts +0 -13
  65. package/dist/engine/kolmoProcedural.js +0 -101
  66. package/dist/engine/kolmoProcedural.js.map +0 -1
  67. package/dist/engine/kolmoRigs.d.ts +0 -13
  68. package/dist/engine/kolmoRigs.js +0 -100
  69. package/dist/engine/kolmoRigs.js.map +0 -1
  70. package/dist/engine/kolmoStore.d.ts +0 -3
  71. package/dist/engine/kolmoStore.js +0 -4
  72. package/dist/engine/kolmoStore.js.map +0 -1
  73. package/dist/engine/kolmoSurface.d.ts +0 -18
  74. package/dist/engine/kolmoSurface.js +0 -198
  75. package/dist/engine/kolmoSurface.js.map +0 -1
  76. package/dist/engine/kolmoTouchOverlay.d.ts +0 -21
  77. package/dist/engine/kolmoTouchOverlay.js +0 -326
  78. package/dist/engine/kolmoTouchOverlay.js.map +0 -1
  79. package/dist/engine/kolmoTouchState.d.ts +0 -50
  80. package/dist/engine/kolmoTouchState.js +0 -210
  81. package/dist/engine/kolmoTouchState.js.map +0 -1
  82. package/dist/engine/kolmoTraits.js +0 -140
  83. package/dist/engine/kolmoTraits.js.map +0 -1
  84. package/dist/engine/kolmoVehicle.d.ts +0 -4
  85. package/dist/engine/kolmoVehicle.js +0 -80
  86. package/dist/engine/kolmoVehicle.js.map +0 -1
  87. package/dist/engine/kolmoVehicleAutoCompile.d.ts +0 -11
  88. package/dist/engine/kolmoVehicleAutoCompile.js +0 -94
  89. package/dist/engine/kolmoVehicleAutoCompile.js.map +0 -1
  90. package/dist/engine/kolmoVehicleConfig.d.ts +0 -56
  91. package/dist/engine/kolmoVehicleConfig.js +0 -84
  92. package/dist/engine/kolmoVehicleConfig.js.map +0 -1
  93. package/dist/engine/kolmoVehicleDriver.d.ts +0 -39
  94. package/dist/engine/kolmoVehicleDriver.js +0 -147
  95. package/dist/engine/kolmoVehicleDriver.js.map +0 -1
  96. package/dist/engine/kolmoVehicleInner.d.ts +0 -7
  97. package/dist/engine/kolmoVehicleInner.js +0 -307
  98. package/dist/engine/kolmoVehicleInner.js.map +0 -1
  99. package/dist/engine/kolmoWardrobeRig.d.ts +0 -22
  100. package/dist/engine/kolmoWardrobeRig.js +0 -146
  101. package/dist/engine/kolmoWardrobeRig.js.map +0 -1
  102. package/dist/engine/kolmoWorld.d.ts +0 -45
  103. package/dist/engine/kolmoWorld.js +0 -164
  104. package/dist/engine/kolmoWorld.js.map +0 -1
  105. package/dist/engine/longDriveKit.d.ts +0 -19
  106. package/dist/engine/longDriveKit.js +0 -145
  107. package/dist/engine/longDriveKit.js.map +0 -1
  108. package/dist/engine/longDriveRoadside.d.ts +0 -16
  109. package/dist/engine/longDriveRoadside.js +0 -171
  110. package/dist/engine/longDriveRoadside.js.map +0 -1
  111. package/dist/engine/macroCellBuilder.d.ts +0 -44
  112. package/dist/engine/macroCellBuilder.js +0 -228
  113. package/dist/engine/macroCellBuilder.js.map +0 -1
  114. package/dist/engine/mainlandMacroCell.d.ts +0 -15
  115. package/dist/engine/mainlandMacroCell.js +0 -168
  116. package/dist/engine/mainlandMacroCell.js.map +0 -1
  117. package/dist/engine/shiftedFixedBody.d.ts +0 -13
  118. package/dist/engine/shiftedFixedBody.js +0 -75
  119. package/dist/engine/shiftedFixedBody.js.map +0 -1
  120. package/dist/importer/ChopShopPanel.d.ts +0 -52
  121. package/dist/importer/ChopShopPanel.js +0 -409
  122. package/dist/importer/ChopShopPanel.js.map +0 -1
  123. package/dist/importer/DomainWorkshopPanel.d.ts +0 -25
  124. package/dist/importer/DomainWorkshopPanel.js +0 -385
  125. package/dist/importer/DomainWorkshopPanel.js.map +0 -1
  126. package/dist/importer/GateHudBar.d.ts +0 -39
  127. package/dist/importer/GateHudBar.js +0 -401
  128. package/dist/importer/GateHudBar.js.map +0 -1
  129. package/dist/importer/GlbImportGate.d.ts +0 -8
  130. package/dist/importer/GlbImportGate.js +0 -300
  131. package/dist/importer/GlbImportGate.js.map +0 -1
  132. package/dist/importer/ImperativeVehicleRig.d.ts +0 -9
  133. package/dist/importer/ImperativeVehicleRig.js +0 -274
  134. package/dist/importer/ImperativeVehicleRig.js.map +0 -1
  135. package/dist/importer/LiveDrivePads.d.ts +0 -20
  136. package/dist/importer/LiveDrivePads.js +0 -195
  137. package/dist/importer/LiveDrivePads.js.map +0 -1
  138. package/dist/importer/PaperShellDebrisRig.d.ts +0 -25
  139. package/dist/importer/PaperShellDebrisRig.js +0 -143
  140. package/dist/importer/PaperShellDebrisRig.js.map +0 -1
  141. package/dist/importer/R2VaultDrawer.d.ts +0 -12
  142. package/dist/importer/R2VaultDrawer.js +0 -90
  143. package/dist/importer/R2VaultDrawer.js.map +0 -1
  144. package/dist/importer/Step1CalibrationPlinth.d.ts +0 -56
  145. package/dist/importer/Step1CalibrationPlinth.js +0 -204
  146. package/dist/importer/Step1CalibrationPlinth.js.map +0 -1
  147. package/dist/importer/Step1ExplodedIslands.d.ts +0 -31
  148. package/dist/importer/Step1ExplodedIslands.js +0 -144
  149. package/dist/importer/Step1ExplodedIslands.js.map +0 -1
  150. package/dist/importer/Step2UniversalPad.d.ts +0 -18
  151. package/dist/importer/Step2UniversalPad.js +0 -123
  152. package/dist/importer/Step2UniversalPad.js.map +0 -1
  153. package/dist/importer/VfxEmitterPool.d.ts +0 -8
  154. package/dist/importer/VfxEmitterPool.js +0 -64
  155. package/dist/importer/VfxEmitterPool.js.map +0 -1
  156. package/dist/importer/WardrobeWorkshopPanel.d.ts +0 -15
  157. package/dist/importer/WardrobeWorkshopPanel.js +0 -529
  158. package/dist/importer/WardrobeWorkshopPanel.js.map +0 -1
  159. package/dist/importer/WheelRingHandles3D.d.ts +0 -11
  160. package/dist/importer/WheelRingHandles3D.js +0 -319
  161. package/dist/importer/WheelRingHandles3D.js.map +0 -1
  162. package/dist/importer/archLinerGeom.d.ts +0 -2
  163. package/dist/importer/archLinerGeom.js +0 -51
  164. package/dist/importer/archLinerGeom.js.map +0 -1
  165. package/dist/importer/chopHingeHelpers.d.ts +0 -15
  166. package/dist/importer/chopHingeHelpers.js +0 -193
  167. package/dist/importer/chopHingeHelpers.js.map +0 -1
  168. package/dist/importer/chopShopActions.d.ts +0 -58
  169. package/dist/importer/chopShopActions.js +0 -165
  170. package/dist/importer/chopShopActions.js.map +0 -1
  171. package/dist/importer/chopShopHandlers.d.ts +0 -26
  172. package/dist/importer/chopShopHandlers.js +0 -283
  173. package/dist/importer/chopShopHandlers.js.map +0 -1
  174. package/dist/importer/chopShopIoActions.d.ts +0 -20
  175. package/dist/importer/chopShopIoActions.js +0 -192
  176. package/dist/importer/chopShopIoActions.js.map +0 -1
  177. package/dist/importer/chopShopMcpAction.d.ts +0 -18
  178. package/dist/importer/chopShopMcpAction.js +0 -58
  179. package/dist/importer/chopShopMcpAction.js.map +0 -1
  180. package/dist/importer/cylinderBooleanSlice.d.ts +0 -14
  181. package/dist/importer/cylinderBooleanSlice.js +0 -110
  182. package/dist/importer/cylinderBooleanSlice.js.map +0 -1
  183. package/dist/importer/cylinderSliceMath.d.ts +0 -14
  184. package/dist/importer/cylinderSliceMath.js +0 -251
  185. package/dist/importer/cylinderSliceMath.js.map +0 -1
  186. package/dist/importer/fusedWheelDetect.d.ts +0 -4
  187. package/dist/importer/fusedWheelDetect.js +0 -297
  188. package/dist/importer/fusedWheelDetect.js.map +0 -1
  189. package/dist/importer/fusedWheelFit.d.ts +0 -19
  190. package/dist/importer/fusedWheelFit.js +0 -219
  191. package/dist/importer/fusedWheelFit.js.map +0 -1
  192. package/dist/importer/gateStore.d.ts +0 -73
  193. package/dist/importer/gateStore.js +0 -102
  194. package/dist/importer/gateStore.js.map +0 -1
  195. package/dist/importer/glbNormalizer.d.ts +0 -22
  196. package/dist/importer/glbNormalizer.js +0 -177
  197. package/dist/importer/glbNormalizer.js.map +0 -1
  198. package/dist/importer/importerWebMcp.d.ts +0 -51
  199. package/dist/importer/importerWebMcp.js +0 -50
  200. package/dist/importer/importerWebMcp.js.map +0 -1
  201. package/dist/importer/importerWebMcpTools.d.ts +0 -2
  202. package/dist/importer/importerWebMcpTools.js +0 -368
  203. package/dist/importer/importerWebMcpTools.js.map +0 -1
  204. package/dist/importer/index.d.ts +0 -29
  205. package/dist/importer/index.js +0 -42
  206. package/dist/importer/index.js.map +0 -1
  207. package/dist/importer/khrCarGeometryMass.d.ts +0 -20
  208. package/dist/importer/khrCarGeometryMass.js +0 -131
  209. package/dist/importer/khrCarGeometryMass.js.map +0 -1
  210. package/dist/importer/khrCarPlanHelpers.d.ts +0 -39
  211. package/dist/importer/khrCarPlanHelpers.js +0 -300
  212. package/dist/importer/khrCarPlanHelpers.js.map +0 -1
  213. package/dist/importer/khrCarPlanner.d.ts +0 -8
  214. package/dist/importer/khrCarPlanner.js +0 -289
  215. package/dist/importer/khrCarPlanner.js.map +0 -1
  216. package/dist/importer/khrCompiler.d.ts +0 -5
  217. package/dist/importer/khrCompiler.js +0 -87
  218. package/dist/importer/khrCompiler.js.map +0 -1
  219. package/dist/importer/khrCraftPropCompiler.d.ts +0 -45
  220. package/dist/importer/khrCraftPropCompiler.js +0 -263
  221. package/dist/importer/khrCraftPropCompiler.js.map +0 -1
  222. package/dist/importer/khrNodeNameGuard.d.ts +0 -20
  223. package/dist/importer/khrNodeNameGuard.js +0 -139
  224. package/dist/importer/khrNodeNameGuard.js.map +0 -1
  225. package/dist/importer/launcherBake.d.ts +0 -15
  226. package/dist/importer/launcherBake.js +0 -117
  227. package/dist/importer/launcherBake.js.map +0 -1
  228. package/dist/importer/launcherCadGeometry.d.ts +0 -22
  229. package/dist/importer/launcherCadGeometry.js +0 -185
  230. package/dist/importer/launcherCadGeometry.js.map +0 -1
  231. package/dist/importer/meshIslands.d.ts +0 -17
  232. package/dist/importer/meshIslands.js +0 -102
  233. package/dist/importer/meshIslands.js.map +0 -1
  234. package/dist/importer/meshSliceBuffers.d.ts +0 -15
  235. package/dist/importer/meshSliceBuffers.js +0 -159
  236. package/dist/importer/meshSliceBuffers.js.map +0 -1
  237. package/dist/importer/polygonEarClipYZ.d.ts +0 -3
  238. package/dist/importer/polygonEarClipYZ.js +0 -67
  239. package/dist/importer/polygonEarClipYZ.js.map +0 -1
  240. package/dist/importer/proceduralC12AndCraft.d.ts +0 -18
  241. package/dist/importer/proceduralC12AndCraft.js +0 -302
  242. package/dist/importer/proceduralC12AndCraft.js.map +0 -1
  243. package/dist/importer/proceduralDomainBuilders.d.ts +0 -10
  244. package/dist/importer/proceduralDomainBuilders.js +0 -346
  245. package/dist/importer/proceduralDomainBuilders.js.map +0 -1
  246. package/dist/importer/proceduralPersonAndProp.d.ts +0 -8
  247. package/dist/importer/proceduralPersonAndProp.js +0 -303
  248. package/dist/importer/proceduralPersonAndProp.js.map +0 -1
  249. package/dist/importer/sceneSiNormalize.d.ts +0 -19
  250. package/dist/importer/sceneSiNormalize.js +0 -145
  251. package/dist/importer/sceneSiNormalize.js.map +0 -1
  252. package/dist/importer/starterScene.d.ts +0 -5
  253. package/dist/importer/starterScene.js +0 -139
  254. package/dist/importer/starterScene.js.map +0 -1
  255. package/dist/importer/surfaceCutter.d.ts +0 -16
  256. package/dist/importer/surfaceCutter.js +0 -83
  257. package/dist/importer/surfaceCutter.js.map +0 -1
  258. package/dist/importer/surfaceGeodesic.d.ts +0 -7
  259. package/dist/importer/surfaceGeodesic.js +0 -130
  260. package/dist/importer/surfaceGeodesic.js.map +0 -1
  261. package/dist/importer/surfaceLoopRefine.d.ts +0 -6
  262. package/dist/importer/surfaceLoopRefine.js +0 -171
  263. package/dist/importer/surfaceLoopRefine.js.map +0 -1
  264. package/dist/importer/surfacePeel.d.ts +0 -11
  265. package/dist/importer/surfacePeel.js +0 -119
  266. package/dist/importer/surfacePeel.js.map +0 -1
  267. package/dist/importer/surfaceTopology.d.ts +0 -36
  268. package/dist/importer/surfaceTopology.js +0 -143
  269. package/dist/importer/surfaceTopology.js.map +0 -1
  270. package/dist/importer/universalGateBake.d.ts +0 -45
  271. package/dist/importer/universalGateBake.js +0 -203
  272. package/dist/importer/universalGateBake.js.map +0 -1
  273. package/dist/importer/usdPhysicsSpecs.d.ts +0 -3
  274. package/dist/importer/usdPhysicsSpecs.js +0 -245
  275. package/dist/importer/usdPhysicsSpecs.js.map +0 -1
  276. package/dist/importer/usdTextParse.d.ts +0 -12
  277. package/dist/importer/usdTextParse.js +0 -118
  278. package/dist/importer/usdTextParse.js.map +0 -1
  279. package/dist/importer/usdToGlb.d.ts +0 -12
  280. package/dist/importer/usdToGlb.js +0 -94
  281. package/dist/importer/usdToGlb.js.map +0 -1
  282. package/dist/importer/useChopShopController.d.ts +0 -110
  283. package/dist/importer/useChopShopController.js +0 -219
  284. package/dist/importer/useChopShopController.js.map +0 -1
  285. package/dist/importer/useChopShopState.d.ts +0 -103
  286. package/dist/importer/useChopShopState.js +0 -350
  287. package/dist/importer/useChopShopState.js.map +0 -1
  288. package/dist/importer/useWasdKeyRef.d.ts +0 -9
  289. package/dist/importer/useWasdKeyRef.js +0 -35
  290. package/dist/importer/useWasdKeyRef.js.map +0 -1
  291. package/dist/importer/vehiclePartSplit.d.ts +0 -33
  292. package/dist/importer/vehiclePartSplit.js +0 -183
  293. package/dist/importer/vehiclePartSplit.js.map +0 -1
  294. package/dist/importer/wardrobeAutoFit.d.ts +0 -16
  295. package/dist/importer/wardrobeAutoFit.js +0 -410
  296. package/dist/importer/wardrobeAutoFit.js.map +0 -1
  297. package/dist/importer/wardrobeCatalog.d.ts +0 -16
  298. package/dist/importer/wardrobeCatalog.js +0 -409
  299. package/dist/importer/wardrobeCatalog.js.map +0 -1
  300. package/dist/importer/wardrobeController.d.ts +0 -49
  301. package/dist/importer/wardrobeController.js +0 -181
  302. package/dist/importer/wardrobeController.js.map +0 -1
  303. package/dist/importer/wardrobeFitter.d.ts +0 -27
  304. package/dist/importer/wardrobeFitter.js +0 -269
  305. package/dist/importer/wardrobeFitter.js.map +0 -1
  306. package/dist/importer/wardrobeWebMcpTools.d.ts +0 -2
  307. package/dist/importer/wardrobeWebMcpTools.js +0 -198
  308. package/dist/importer/wardrobeWebMcpTools.js.map +0 -1
  309. package/dist/importer/wheelAxlePairing.d.ts +0 -21
  310. package/dist/importer/wheelAxlePairing.js +0 -157
  311. package/dist/importer/wheelAxlePairing.js.map +0 -1
  312. package/dist/importer/wheelCutterHelpers.d.ts +0 -45
  313. package/dist/importer/wheelCutterHelpers.js +0 -208
  314. package/dist/importer/wheelCutterHelpers.js.map +0 -1
  315. package/dist/importer/wheelRingHandleMath.d.ts +0 -20
  316. package/dist/importer/wheelRingHandleMath.js +0 -66
  317. package/dist/importer/wheelRingHandleMath.js.map +0 -1
  318. package/dist/index.js.map +0 -1
  319. package/dist/junk/DestructibleTarget.d.ts +0 -18
  320. package/dist/junk/DestructibleTarget.js +0 -223
  321. package/dist/junk/DestructibleTarget.js.map +0 -1
  322. package/dist/junk/KolmoJunk.d.ts +0 -14
  323. package/dist/junk/KolmoJunk.js +0 -76
  324. package/dist/junk/KolmoJunk.js.map +0 -1
  325. package/dist/junk/ShardPieces.d.ts +0 -13
  326. package/dist/junk/ShardPieces.js +0 -101
  327. package/dist/junk/ShardPieces.js.map +0 -1
  328. package/dist/junk/TargetDecals.d.ts +0 -9
  329. package/dist/junk/TargetDecals.js +0 -77
  330. package/dist/junk/TargetDecals.js.map +0 -1
  331. package/dist/junk/bvhShatter.d.ts +0 -3
  332. package/dist/junk/bvhShatter.js +0 -101
  333. package/dist/junk/bvhShatter.js.map +0 -1
  334. package/dist/junk/bvhTriCollector.d.ts +0 -16
  335. package/dist/junk/bvhTriCollector.js +0 -127
  336. package/dist/junk/bvhTriCollector.js.map +0 -1
  337. package/dist/junk/index.d.ts +0 -14
  338. package/dist/junk/index.js +0 -13
  339. package/dist/junk/index.js.map +0 -1
  340. package/dist/junk/junkGeometry.d.ts +0 -13
  341. package/dist/junk/junkGeometry.js +0 -87
  342. package/dist/junk/junkGeometry.js.map +0 -1
  343. package/dist/junk/junkImportSanitize.d.ts +0 -5
  344. package/dist/junk/junkImportSanitize.js +0 -74
  345. package/dist/junk/junkImportSanitize.js.map +0 -1
  346. package/dist/junk/junkImporter.d.ts +0 -14
  347. package/dist/junk/junkImporter.js +0 -124
  348. package/dist/junk/junkImporter.js.map +0 -1
  349. package/dist/junk/junkLabelCanvas.d.ts +0 -2
  350. package/dist/junk/junkLabelCanvas.js +0 -185
  351. package/dist/junk/junkLabelCanvas.js.map +0 -1
  352. package/dist/junk/junkLabels.d.ts +0 -9
  353. package/dist/junk/junkLabels.js +0 -49
  354. package/dist/junk/junkLabels.js.map +0 -1
  355. package/dist/junk/junkProceduralScenes.d.ts +0 -12
  356. package/dist/junk/junkProceduralScenes.js +0 -220
  357. package/dist/junk/junkProceduralScenes.js.map +0 -1
  358. package/dist/junk/junkSheetSplitter.d.ts +0 -38
  359. package/dist/junk/junkSheetSplitter.js +0 -104
  360. package/dist/junk/junkSheetSplitter.js.map +0 -1
  361. package/dist/junk/junkTypes.d.ts +0 -48
  362. package/dist/junk/junkTypes.js +0 -0
  363. package/dist/junk/junkTypes.js.map +0 -1
  364. package/dist/junk/targetHelpers.d.ts +0 -55
  365. package/dist/junk/targetHelpers.js +0 -157
  366. package/dist/junk/targetHelpers.js.map +0 -1
  367. package/dist/junk/targetHitLogic.d.ts +0 -30
  368. package/dist/junk/targetHitLogic.js +0 -163
  369. package/dist/junk/targetHitLogic.js.map +0 -1
  370. package/dist/junk/useTargetAssets.d.ts +0 -19
  371. package/dist/junk/useTargetAssets.js +0 -130
  372. package/dist/junk/useTargetAssets.js.map +0 -1
  373. package/dist/physics/index.js.map +0 -1
  374. package/dist/physics/nBodyGravity.js +0 -70
  375. package/dist/physics/nBodyGravity.js.map +0 -1
  376. package/dist/sand3d/KolmoSand3D.d.ts +0 -19
  377. package/dist/sand3d/KolmoSand3D.js +0 -92
  378. package/dist/sand3d/KolmoSand3D.js.map +0 -1
  379. package/dist/sand3d/Sand3dWorkshopSection.d.ts +0 -8
  380. package/dist/sand3d/Sand3dWorkshopSection.js +0 -117
  381. package/dist/sand3d/Sand3dWorkshopSection.js.map +0 -1
  382. package/dist/sand3d/gateBakeHelpers.d.ts +0 -21
  383. package/dist/sand3d/gateBakeHelpers.js +0 -225
  384. package/dist/sand3d/gateBakeHelpers.js.map +0 -1
  385. package/dist/sand3d/gateDoorwayBake.d.ts +0 -12
  386. package/dist/sand3d/gateDoorwayBake.js +0 -203
  387. package/dist/sand3d/gateDoorwayBake.js.map +0 -1
  388. package/dist/sand3d/index.d.ts +0 -3
  389. package/dist/sand3d/index.js +0 -4
  390. package/dist/sand3d/index.js.map +0 -1
  391. package/dist/sand3d/sand3dAssetLoader.d.ts +0 -28
  392. package/dist/sand3d/sand3dAssetLoader.js +0 -177
  393. package/dist/sand3d/sand3dAssetLoader.js.map +0 -1
  394. package/dist/schema/kolmoSchema.d.ts +0 -9
  395. package/dist/schema/kolmoSchema.js +0 -110
  396. package/dist/schema/kolmoSchema.js.map +0 -1
  397. package/dist/schema/kolmoStamp.d.ts +0 -11
  398. package/dist/schema/kolmoStamp.js +0 -119
  399. package/dist/schema/kolmoStamp.js.map +0 -1
  400. package/dist/schema/kolmoTypes.d.ts +0 -63
  401. package/dist/schema/kolmoTypes.js +0 -66
  402. package/dist/schema/kolmoTypes.js.map +0 -1
  403. package/dist/shaders/celestialBackdrop.d.ts +0 -14
  404. package/dist/shaders/celestialBackdrop.js +0 -181
  405. package/dist/shaders/celestialBackdrop.js.map +0 -1
  406. package/dist/shaders/emitterShaders.d.ts +0 -9
  407. package/dist/shaders/emitterShaders.js +0 -114
  408. package/dist/shaders/emitterShaders.js.map +0 -1
  409. package/dist/shaders/index.d.ts +0 -5
  410. package/dist/shaders/index.js +0 -12
  411. package/dist/shaders/index.js.map +0 -1
  412. package/dist/shaders/plumeAndSparkle.d.ts +0 -12
  413. package/dist/shaders/plumeAndSparkle.js +0 -233
  414. package/dist/shaders/plumeAndSparkle.js.map +0 -1
  415. package/dist/shaders/ps2GlslShared.d.ts +0 -20
  416. package/dist/shaders/ps2GlslShared.js +0 -30
  417. package/dist/shaders/ps2GlslShared.js.map +0 -1
  418. package/dist/shaders/ps2MaterialsTSL.d.ts +0 -23
  419. package/dist/shaders/ps2MaterialsTSL.js +0 -146
  420. package/dist/shaders/ps2MaterialsTSL.js.map +0 -1
  421. package/dist/shaders/ps2MaterialsWebGL.d.ts +0 -15
  422. package/dist/shaders/ps2MaterialsWebGL.js +0 -57
  423. package/dist/shaders/ps2MaterialsWebGL.js.map +0 -1
  424. package/dist/shaders/ps2RoadWebGL.d.ts +0 -7
  425. package/dist/shaders/ps2RoadWebGL.js +0 -138
  426. package/dist/shaders/ps2RoadWebGL.js.map +0 -1
  427. package/dist/shaders/ps2TerrainWebGL.d.ts +0 -8
  428. package/dist/shaders/ps2TerrainWebGL.js +0 -131
  429. package/dist/shaders/ps2TerrainWebGL.js.map +0 -1
  430. package/dist/shaders/ps2Textures.d.ts +0 -22
  431. package/dist/shaders/ps2Textures.js +0 -299
  432. package/dist/shaders/ps2Textures.js.map +0 -1
  433. package/dist/shaders/retroPalettes.d.ts +0 -24
  434. package/dist/shaders/retroPalettes.js +0 -221
  435. package/dist/shaders/retroPalettes.js.map +0 -1
  436. package/dist/shaders/retroShader.d.ts +0 -13
  437. package/dist/shaders/retroShader.js +0 -110
  438. package/dist/shaders/retroShader.js.map +0 -1
  439. package/dist/shaders/retroUniforms.d.ts +0 -60
  440. package/dist/shaders/retroUniforms.js +0 -215
  441. package/dist/shaders/retroUniforms.js.map +0 -1
  442. package/dist/shaders/skyboxShaders.d.ts +0 -16
  443. package/dist/shaders/skyboxShaders.js +0 -266
  444. package/dist/shaders/skyboxShaders.js.map +0 -1
  445. package/dist/shaders/tsl.d.ts +0 -1
  446. package/dist/shaders/tsl.js +0 -1
  447. package/dist/shaders/tsl.js.map +0 -1
  448. package/dist/suika/KolmoSuikaOrb.d.ts +0 -33
  449. package/dist/suika/KolmoSuikaOrb.js +0 -375
  450. package/dist/suika/KolmoSuikaOrb.js.map +0 -1
  451. package/dist/suika/index.d.ts +0 -4
  452. package/dist/suika/index.js +0 -5
  453. package/dist/suika/index.js.map +0 -1
  454. package/dist/suika/suikaArbiter.d.ts +0 -60
  455. package/dist/suika/suikaArbiter.js +0 -265
  456. package/dist/suika/suikaArbiter.js.map +0 -1
  457. package/dist/suika/suikaGeometry.d.ts +0 -10
  458. package/dist/suika/suikaGeometry.js +0 -251
  459. package/dist/suika/suikaGeometry.js.map +0 -1
  460. package/dist/suika/suikaTypes.d.ts +0 -74
  461. package/dist/suika/suikaTypes.js +0 -196
  462. package/dist/suika/suikaTypes.js.map +0 -1
  463. package/dist/world/frontage.d.ts +0 -26
  464. package/dist/world/frontage.js +0 -36
  465. package/dist/world/frontage.js.map +0 -1
  466. package/dist/world/index.d.ts +0 -9
  467. package/dist/world/index.js +0 -12
  468. package/dist/world/index.js.map +0 -1
  469. package/dist/world/infiniteWorld2D.d.ts +0 -19
  470. package/dist/world/infiniteWorld2D.js +0 -219
  471. package/dist/world/infiniteWorld2D.js.map +0 -1
  472. package/dist/world/island.d.ts +0 -29
  473. package/dist/world/island.js +0 -116
  474. package/dist/world/island.js.map +0 -1
  475. package/dist/world/islandPathing.d.ts +0 -6
  476. package/dist/world/islandPathing.js +0 -166
  477. package/dist/world/islandPathing.js.map +0 -1
  478. package/dist/world/macroCellSchema.d.ts +0 -72
  479. package/dist/world/macroCellSchema.js +0 -34
  480. package/dist/world/macroCellSchema.js.map +0 -1
  481. package/dist/world/macroKnightAStar.d.ts +0 -11
  482. package/dist/world/macroKnightAStar.js +0 -240
  483. package/dist/world/macroKnightAStar.js.map +0 -1
  484. package/dist/world/macroSettlementZones.d.ts +0 -9
  485. package/dist/world/macroSettlementZones.js +0 -108
  486. package/dist/world/macroSettlementZones.js.map +0 -1
  487. package/dist/world/random.d.ts +0 -23
  488. package/dist/world/random.js +0 -59
  489. package/dist/world/random.js.map +0 -1
  490. package/dist/world/road.d.ts +0 -37
  491. package/dist/world/road.js +0 -198
  492. package/dist/world/road.js.map +0 -1
  493. package/dist/world/roadRibbon.d.ts +0 -29
  494. package/dist/world/roadRibbon.js +0 -166
  495. package/dist/world/roadRibbon.js.map +0 -1
  496. package/dist/world/terrain.d.ts +0 -62
  497. package/dist/world/terrain.js +0 -133
  498. package/dist/world/terrain.js.map +0 -1
  499. package/dist/world/terrainGeometry.d.ts +0 -14
  500. package/dist/world/terrainGeometry.js +0 -76
  501. package/dist/world/terrainGeometry.js.map +0 -1
  502. package/dist/world/worldTypes.d.ts +0 -43
  503. package/dist/world/worldTypes.js +0 -197
  504. package/dist/world/worldTypes.js.map +0 -1
  505. package/docs/api-reference.md +0 -728
  506. package/skills/kolmo-engine/SKILL.md +0 -109
@@ -1,302 +0,0 @@
1
- import { KOLMO_EXTENSION_NAME } from "../schema/kolmoTypes.js";
2
- import * as THREE from "three";
3
- import { DOOR_HINGE_SPEC } from "@khr3/c12";
4
- // src/importer/proceduralC12AndCraft.ts
5
- var C12_PROCEDURAL_RECIPES = Object.freeze([
6
- {
7
- id: "c12_doorway_wall",
8
- label: "Doorway Wall",
9
- domain: "c12",
10
- targetMeters: 3,
11
- massKg: 0,
12
- color: "#94a3b8"
13
- },
14
- {
15
- id: "c12_window_wall",
16
- label: "Window Wall",
17
- domain: "c12",
18
- targetMeters: 3,
19
- massKg: 0,
20
- color: "#38bdf8"
21
- },
22
- {
23
- id: "c12_floor_corbel",
24
- label: "Floor Corbel",
25
- domain: "c12",
26
- targetMeters: 3,
27
- massKg: 0,
28
- color: "#64748b"
29
- },
30
- {
31
- id: "c12_stair_flight",
32
- label: "Stair Flight",
33
- domain: "c12",
34
- targetMeters: 3,
35
- massKg: 0,
36
- color: "#f59e0b"
37
- },
38
- {
39
- id: "c12_gable_roof",
40
- label: "Gable Roof",
41
- domain: "c12",
42
- targetMeters: 3,
43
- massKg: 0,
44
- color: "#b45309"
45
- },
46
- {
47
- id: "c12_hex_wing",
48
- label: "C12 Hex Wing",
49
- domain: "c12",
50
- targetMeters: 3,
51
- massKg: 0,
52
- color: "#10b981"
53
- }
54
- ]);
55
- function makeFlatMat(color, roughness = .55, metalness = .18, emissive) {
56
- return new THREE.MeshStandardMaterial({
57
- color,
58
- roughness,
59
- metalness,
60
- flatShading: true,
61
- ...emissive ? {
62
- emissive,
63
- emissiveIntensity: .85
64
- } : {}
65
- });
66
- }
67
- function addPartBox(p, name, sx, sy, sz, x, y, z, mat) {
68
- const m = new THREE.Mesh(new THREE.BoxGeometry(sx, sy, sz), mat);
69
- m.name = name;
70
- m.position.set(x, y, z);
71
- p.add(m);
72
- return m;
73
- }
74
- function addKolmoSocket(parent, name, pos, role, emitter, rotEuler) {
75
- const node = new THREE.Object3D();
76
- node.name = name;
77
- node.position.set(pos[0], pos[1], pos[2]);
78
- if (rotEuler) node.rotation.set(rotEuler[0], rotEuler[1], rotEuler[2]);
79
- const ext = {
80
- ...emitter ?? {},
81
- socket: role
82
- };
83
- node.userData = {
84
- kolmoSocket: role,
85
- socket: role,
86
- [KOLMO_EXTENSION_NAME]: ext,
87
- kolmoExtension: ext
88
- };
89
- parent.add(node);
90
- return node;
91
- }
92
- function buildDoorLeafMesh(w, h, t, leafHex, handleHex) {
93
- const pos = [], norm = [], col = [];
94
- const c = new THREE.Color();
95
- const pushBox = (sx, sy, sz, ox, oy, oz, hex) => {
96
- const raw = new THREE.BoxGeometry(sx, sy, sz);
97
- const g = raw.index ? raw.toNonIndexed() : raw;
98
- if (raw.index) raw.dispose();
99
- const pa = g.getAttribute("position"), na = g.getAttribute("normal");
100
- c.setHex(hex);
101
- for (let i = 0; i < pa.count; i++) {
102
- pos.push(pa.getX(i) + ox, pa.getY(i) + oy, pa.getZ(i) + oz);
103
- norm.push(na.getX(i), na.getY(i), na.getZ(i));
104
- col.push(c.r, c.g, c.b);
105
- }
106
- g.dispose();
107
- };
108
- pushBox(w, h, t, w * .5 + .005, h * .5 + .01, 0, leafHex);
109
- pushBox(w * .7, h * .34, t + .014, w * .5 + .005, h * .72, 0, leafHex - 789516);
110
- pushBox(w * .7, h * .32, t + .014, w * .5 + .005, h * .27, 0, leafHex - 789516);
111
- pushBox(.03, .14, t + .04, w - .09, h * .48, 0, handleHex);
112
- pushBox(.11, .024, t + .08, w - .12, h * .48, 0, handleHex);
113
- const geo = new THREE.BufferGeometry();
114
- geo.setAttribute("position", new THREE.Float32BufferAttribute(pos, 3));
115
- geo.setAttribute("normal", new THREE.Float32BufferAttribute(norm, 3));
116
- geo.setAttribute("color", new THREE.Float32BufferAttribute(col, 3));
117
- geo.computeBoundingBox();
118
- geo.computeBoundingSphere();
119
- const leaf = new THREE.Mesh(geo, new THREE.MeshStandardMaterial({
120
- vertexColors: true,
121
- roughness: .48,
122
- metalness: .22,
123
- flatShading: true
124
- }));
125
- leaf.name = "DoorLeaf";
126
- return leaf;
127
- }
128
- function addC12CornerFooters(group, mat) {
129
- const h = 1 / 12, w = .25;
130
- for (const [tag, sx] of [["L", -1], ["R", 1]]) for (const [zTag, sz] of [["F", 1], ["B", -1]]) addPartBox(group, `LatticeFooter_${tag}_${zTag}`, w, h, w, sx * (1.5 - w * .5), h * .5, sz * (1.5 - w * .5), mat);
131
- }
132
- function buildProceduralC12Scene(recipeOrId = "c12_doorway_wall") {
133
- const id = typeof recipeOrId === "string" ? recipeOrId : recipeOrId.id;
134
- const root = new THREE.Group();
135
- root.name = id;
136
- const wallMat = makeFlatMat("#94a3b8", .68, .12);
137
- const trimMat = makeFlatMat("#334155", .52, .28);
138
- const woodMat = makeFlatMat("#b45309", .62, .1);
139
- const T = .25;
140
- if (id === "c12_window_wall") {
141
- addC12CornerFooters(root, trimMat);
142
- addPartBox(root, "WallSill", 3, .9, T, 0, .45, 0, wallMat);
143
- addPartBox(root, "WallHeader", 3, .75, T, 0, 2.625, 0, wallMat);
144
- addPartBox(root, "WallPier_L", .6, 1.35, T, -1.2, 1.575, 0, wallMat);
145
- addPartBox(root, "WallPier_R", .6, 1.35, T, 1.2, 1.575, 0, wallMat);
146
- addPartBox(root, "WindowLedge", 1.88, .06, .33, 0, .91, 0, trimMat);
147
- addPartBox(root, "MullionV", .06, 1.35, .08, 0, 1.575, 0, trimMat);
148
- addPartBox(root, "MullionH", 1.8, .06, .08, 0, 1.575, 0, trimMat);
149
- const glassMat = new THREE.MeshStandardMaterial({
150
- color: "#7dd3fc",
151
- transparent: true,
152
- opacity: .36,
153
- roughness: .1,
154
- flatShading: true
155
- });
156
- for (const [gi, gx, gy] of [
157
- [
158
- 0,
159
- -.45,
160
- 1.24
161
- ],
162
- [
163
- 1,
164
- .45,
165
- 1.24
166
- ],
167
- [
168
- 2,
169
- -.45,
170
- 1.91
171
- ],
172
- [
173
- 3,
174
- .45,
175
- 1.91
176
- ]
177
- ]) addPartBox(root, `WindowPane_${gi}`, .84, .6, .025, gx, gy, 0, glassMat);
178
- addKolmoSocket(root, "Aperture_Window", [
179
- 0,
180
- 1.575,
181
- 0
182
- ], "mount");
183
- } else if (id === "c12_floor_corbel") {
184
- addPartBox(root, "DeckSlab", 3, 1 / 12, 3, 0, .25 - 1 / 24, 0, wallMat);
185
- for (const [pos, idx] of [
186
- [-1.375, 0],
187
- [-.45, 1],
188
- [.45, 2],
189
- [1.375, 3]
190
- ]) {
191
- addPartBox(root, `CorbelRibX_${idx}`, .25, 2 / 12, 3, pos, 1 / 12, 0, trimMat);
192
- addPartBox(root, `CorbelRibZ_${idx}`, 2.5, 2 / 12, .22, 0, 1 / 12, pos, trimMat);
193
- }
194
- } else if (id === "c12_stair_flight") {
195
- const steps = 10, sw = 1.5, stepH = 3 / steps, stepD = 3 / steps;
196
- for (let i = 0; i < steps; i++) {
197
- const h = (i + 1) * stepH * .28 + .08, yTop = (i + 1) * stepH, z = -1.5 + (i + .5) * stepD;
198
- addPartBox(root, `StairTread_${i}`, 1.3599999999999999, h, stepD, 0, yTop - h * .5, z, woodMat);
199
- }
200
- addPartBox(root, "LandingBase", sw, 1 / 12, .3, 0, 1 / 24, -1.35, trimMat);
201
- for (const [tag, sx] of [["L", -1], ["R", 1]]) {
202
- const str = addPartBox(root, `StairStringer_${tag}`, .06, .16, 3.6, sx * (sw * .5 - .03), 1.42, 0, trimMat);
203
- str.rotation.x = -Math.PI * .25;
204
- const rail = addPartBox(root, `StairHandrail_${tag}`, .05, .05, 2.8, sx * (sw * .5 - .03), 1.96, -.12, woodMat);
205
- rail.rotation.x = -.62;
206
- addPartBox(root, `NewelLow_${tag}`, .06, 1.05, .06, sx * (sw * .5 - .03), .525, -1.44, trimMat);
207
- addPartBox(root, `NewelHigh_${tag}`, .06, .6, .06, sx * (sw * .5 - .03), 2.7, 1.44, trimMat);
208
- }
209
- } else if (id === "c12_gable_roof") {
210
- addPartBox(root, "EaveBeam_L", .18, 1 / 6, 3, -1.41, 1 / 12, 0, trimMat);
211
- addPartBox(root, "EaveBeam_R", .18, 1 / 6, 3, 1.41, 1 / 12, 0, trimMat);
212
- addPartBox(root, "RidgeBeam", .18, .18, 3, 0, 1.41, 0, trimMat);
213
- const slopeL = addPartBox(root, "RoofSlope_L", 1.92, .1, 3, -.74, .78, 0, woodMat);
214
- slopeL.rotation.z = .72;
215
- const slopeR = addPartBox(root, "RoofSlope_R", 1.92, .1, 3, .74, .78, 0, woodMat);
216
- slopeR.rotation.z = -.72;
217
- for (const [tag, z] of [["Front", 1.42], ["Back", -1.42]]) {
218
- const tri = new THREE.Shape([
219
- new THREE.Vector2(-1.38, .12),
220
- new THREE.Vector2(1.38, .12),
221
- new THREE.Vector2(0, 1.38)
222
- ]);
223
- const raw = new THREE.ExtrudeGeometry(tri, {
224
- depth: .12,
225
- bevelEnabled: false
226
- });
227
- const g = raw.index ? raw.toNonIndexed() : raw;
228
- if (raw.index) raw.dispose();
229
- g.translate(0, 0, z - .06);
230
- g.computeVertexNormals();
231
- const m = new THREE.Mesh(g, wallMat);
232
- m.name = `GablePediment_${tag}`;
233
- root.add(m);
234
- }
235
- } else if (id === "c12_hex_wing") {
236
- addC12CornerFooters(root, trimMat);
237
- const wedge = new THREE.Shape([
238
- new THREE.Vector2(-1.5, -1.25),
239
- new THREE.Vector2(1.5, -1.25),
240
- new THREE.Vector2(0, 1.35)
241
- ]);
242
- const raw = new THREE.ExtrudeGeometry(wedge, {
243
- depth: .16,
244
- bevelEnabled: false
245
- });
246
- const deckGeo = raw.index ? raw.toNonIndexed() : raw;
247
- if (raw.index) raw.dispose();
248
- deckGeo.rotateX(Math.PI * .5);
249
- deckGeo.translate(0, .16, 0);
250
- deckGeo.computeVertexNormals();
251
- const deck = new THREE.Mesh(deckGeo, trimMat);
252
- deck.name = "HexFloorWedge";
253
- const cap = new THREE.Mesh(deckGeo.clone(), trimMat);
254
- cap.name = "HexCeilingWedge";
255
- cap.position.y = 2.84;
256
- root.add(deck, cap);
257
- for (const [tag, sx, yaw] of [[
258
- "L",
259
- -.72,
260
- .5236
261
- ], [
262
- "R",
263
- .72,
264
- -.5236
265
- ]]) {
266
- const w = addPartBox(root, `HexFacetWall_${tag}`, .14, 2.68, 2.4, sx, 1.5, .05, wallMat);
267
- w.rotation.y = yaw;
268
- }
269
- addPartBox(root, "HexApexPillar", .28, 3, .28, 0, 1.5, 1.32, trimMat);
270
- } else {
271
- addC12CornerFooters(root, trimMat);
272
- const ow = DOOR_HINGE_SPEC.openingWidthM, oh = DOOR_HINGE_SPEC.openingHeightM;
273
- const jw = (3 - ow) * .5;
274
- addPartBox(root, "WallJamb_L", jw, oh, T, -(ow * .5 + jw * .5), oh * .5, 0, wallMat);
275
- addPartBox(root, "WallJamb_R", jw, oh, T, ow * .5 + jw * .5, oh * .5, 0, wallMat);
276
- addPartBox(root, "WallLintel", 3, 3 - oh, T, 0, oh + (3 - oh) * .5, 0, wallMat);
277
- addPartBox(root, "DoorFrame_L", .05, oh, .29, -ow * .5 + .025, oh * .5, 0, trimMat);
278
- addPartBox(root, "DoorFrame_R", .05, oh, .29, ow * .5 - .025, oh * .5, 0, trimMat);
279
- addPartBox(root, "DoorFrame_Top", ow, .05, .29, 0, oh - .025, 0, trimMat);
280
- const leaf = buildDoorLeafMesh(ow - .012, oh - .02, .046, 11817737, 16498468);
281
- leaf.position.set(...DOOR_HINGE_SPEC.hingeOffsetLocal);
282
- leaf.userData = {
283
- c12Role: "DoorLeaf",
284
- hingeOffsetLocal: [...DOOR_HINGE_SPEC.hingeOffsetLocal]
285
- };
286
- root.add(leaf);
287
- addKolmoSocket(root, "Socket_DoorHinge", [...DOOR_HINGE_SPEC.hingeOffsetLocal], "hinge");
288
- addKolmoSocket(root, "Aperture_Doorway_900x2100", [
289
- 0,
290
- oh * .5,
291
- 0
292
- ], "mount");
293
- }
294
- root.userData = {
295
- proceduralDomain: "c12",
296
- proceduralRecipeId: id
297
- };
298
- return root;
299
- }
300
- export { C12_PROCEDURAL_RECIPES, addKolmoSocket, addPartBox, buildDoorLeafMesh, buildProceduralC12Scene, makeFlatMat };
301
-
302
- //# sourceMappingURL=proceduralC12AndCraft.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proceduralC12AndCraft.js","names":[],"sources":["../../src/importer/proceduralC12AndCraft.ts"],"sourcesContent":["import * as THREE from \"three\";\nimport { DOOR_HINGE_SPEC } from \"@khr3/c12\";\nimport { KOLMO_EXTENSION_NAME, type KolmoNodeExtension, type KolmoSocketRole } from \"../schema/kolmoSchema.js\";\n\nexport interface ProceduralRecipeSpec<TId extends string = string> {\n readonly id: TId;\n readonly label: string;\n readonly domain: \"c12\" | \"craft\" | \"person\" | \"prop\" | \"junk\";\n readonly targetMeters: number;\n readonly massKg: number;\n readonly powerOrThrust?: number;\n readonly color: string;\n}\n\nexport type C12ProceduralRecipeId =\n | \"c12_doorway_wall\"\n | \"c12_window_wall\"\n | \"c12_floor_corbel\"\n | \"c12_stair_flight\"\n | \"c12_gable_roof\"\n | \"c12_hex_wing\";\n\nexport const C12_PROCEDURAL_RECIPES: readonly ProceduralRecipeSpec<C12ProceduralRecipeId>[] = Object.freeze([\n { id: \"c12_doorway_wall\", label: \"Doorway Wall\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#94a3b8\" },\n { id: \"c12_window_wall\", label: \"Window Wall\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#38bdf8\" },\n { id: \"c12_floor_corbel\", label: \"Floor Corbel\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#64748b\" },\n { id: \"c12_stair_flight\", label: \"Stair Flight\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#f59e0b\" },\n { id: \"c12_gable_roof\", label: \"Gable Roof\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#b45309\" },\n { id: \"c12_hex_wing\", label: \"C12 Hex Wing\", domain: \"c12\", targetMeters: 3, massKg: 0, color: \"#10b981\" },\n]);\n\nexport function makeFlatMat(color: string, roughness = 0.55, metalness = 0.18, emissive?: string): THREE.MeshStandardMaterial {\n return new THREE.MeshStandardMaterial({\n color,\n roughness,\n metalness,\n flatShading: true,\n ...(emissive ? { emissive, emissiveIntensity: 0.85 } : {}),\n });\n}\n\nexport function addPartBox(p: THREE.Object3D, name: string, sx: number, sy: number, sz: number, x: number, y: number, z: number, mat: THREE.Material): THREE.Mesh {\n const m = new THREE.Mesh(new THREE.BoxGeometry(sx, sy, sz), mat);\n m.name = name;\n m.position.set(x, y, z);\n p.add(m);\n return m;\n}\n\nexport function addKolmoSocket(\n parent: THREE.Object3D,\n name: string,\n pos: [number, number, number],\n role: KolmoSocketRole,\n emitter?: Omit<KolmoNodeExtension, \"socket\">,\n rotEuler?: [number, number, number],\n): THREE.Object3D {\n const node = new THREE.Object3D();\n node.name = name;\n node.position.set(pos[0], pos[1], pos[2]);\n if (rotEuler) node.rotation.set(rotEuler[0], rotEuler[1], rotEuler[2]);\n const ext: KolmoNodeExtension = { ...(emitter ?? {}), socket: role };\n node.userData = { kolmoSocket: role, socket: role, [KOLMO_EXTENSION_NAME]: ext, kolmoExtension: ext };\n parent.add(node);\n return node;\n}\n\nexport function buildDoorLeafMesh(w: number, h: number, t: number, leafHex: number, handleHex: number): THREE.Mesh {\n const pos: number[] = [], norm: number[] = [], col: number[] = [];\n const c = new THREE.Color();\n const pushBox = (sx: number, sy: number, sz: number, ox: number, oy: number, oz: number, hex: number) => {\n const raw = new THREE.BoxGeometry(sx, sy, sz);\n const g = raw.index ? raw.toNonIndexed() : raw;\n if (raw.index) raw.dispose();\n const pa = g.getAttribute(\"position\"), na = g.getAttribute(\"normal\");\n c.setHex(hex);\n for (let i = 0; i < pa.count; i++) {\n pos.push(pa.getX(i) + ox, pa.getY(i) + oy, pa.getZ(i) + oz);\n norm.push(na.getX(i), na.getY(i), na.getZ(i));\n col.push(c.r, c.g, c.b);\n }\n g.dispose();\n };\n pushBox(w, h, t, w * 0.5 + 0.005, h * 0.5 + 0.01, 0, leafHex);\n pushBox(w * 0.7, h * 0.34, t + 0.014, w * 0.5 + 0.005, h * 0.72, 0, leafHex - 0x0c0c0c);\n pushBox(w * 0.7, h * 0.32, t + 0.014, w * 0.5 + 0.005, h * 0.27, 0, leafHex - 0x0c0c0c);\n pushBox(0.03, 0.14, t + 0.04, w - 0.09, h * 0.48, 0, handleHex);\n pushBox(0.11, 0.024, t + 0.08, w - 0.12, h * 0.48, 0, handleHex);\n const geo = new THREE.BufferGeometry();\n geo.setAttribute(\"position\", new THREE.Float32BufferAttribute(pos, 3));\n geo.setAttribute(\"normal\", new THREE.Float32BufferAttribute(norm, 3));\n geo.setAttribute(\"color\", new THREE.Float32BufferAttribute(col, 3));\n geo.computeBoundingBox();\n geo.computeBoundingSphere();\n const leaf = new THREE.Mesh(geo, new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.48, metalness: 0.22, flatShading: true }));\n leaf.name = \"DoorLeaf\";\n return leaf;\n}\n\nfunction addC12CornerFooters(group: THREE.Group, mat: THREE.Material): void {\n const h = 1 / 12, w = 0.25;\n for (const [tag, sx] of [[\"L\", -1], [\"R\", 1]] as const) {\n for (const [zTag, sz] of [[\"F\", 1], [\"B\", -1]] as const) {\n addPartBox(group, `LatticeFooter_${tag}_${zTag}`, w, h, w, sx * (1.5 - w * 0.5), h * 0.5, sz * (1.5 - w * 0.5), mat);\n }\n }\n}\n\nexport function buildProceduralC12Scene(recipeOrId: C12ProceduralRecipeId | ProceduralRecipeSpec | string = \"c12_doorway_wall\"): THREE.Group {\n const id = (typeof recipeOrId === \"string\" ? recipeOrId : recipeOrId.id) as C12ProceduralRecipeId;\n const root = new THREE.Group();\n root.name = id;\n const wallMat = makeFlatMat(\"#94a3b8\", 0.68, 0.12);\n const trimMat = makeFlatMat(\"#334155\", 0.52, 0.28);\n const woodMat = makeFlatMat(\"#b45309\", 0.62, 0.1);\n const T = 0.25;\n\n if (id === \"c12_window_wall\") {\n addC12CornerFooters(root, trimMat);\n addPartBox(root, \"WallSill\", 3, 0.9, T, 0, 0.45, 0, wallMat);\n addPartBox(root, \"WallHeader\", 3, 0.75, T, 0, 2.625, 0, wallMat);\n addPartBox(root, \"WallPier_L\", 0.6, 1.35, T, -1.2, 1.575, 0, wallMat);\n addPartBox(root, \"WallPier_R\", 0.6, 1.35, T, 1.2, 1.575, 0, wallMat);\n addPartBox(root, \"WindowLedge\", 1.88, 0.06, T + 0.08, 0, 0.91, 0, trimMat);\n addPartBox(root, \"MullionV\", 0.06, 1.35, 0.08, 0, 1.575, 0, trimMat);\n addPartBox(root, \"MullionH\", 1.8, 0.06, 0.08, 0, 1.575, 0, trimMat);\n const glassMat = new THREE.MeshStandardMaterial({ color: \"#7dd3fc\", transparent: true, opacity: 0.36, roughness: 0.1, flatShading: true });\n for (const [gi, gx, gy] of [[0, -0.45, 1.24], [1, 0.45, 1.24], [2, -0.45, 1.91], [3, 0.45, 1.91]] as const) {\n addPartBox(root, `WindowPane_${gi}`, 0.84, 0.6, 0.025, gx, gy, 0, glassMat);\n }\n addKolmoSocket(root, \"Aperture_Window\", [0, 1.575, 0], \"mount\");\n } else if (id === \"c12_floor_corbel\") {\n addPartBox(root, \"DeckSlab\", 3, 1 / 12, 3, 0, 0.25 - 1 / 24, 0, wallMat);\n for (const [pos, idx] of [[-1.375, 0], [-0.45, 1], [0.45, 2], [1.375, 3]] as const) {\n addPartBox(root, `CorbelRibX_${idx}`, 0.25, 2 / 12, 3, pos, 1 / 12, 0, trimMat);\n addPartBox(root, `CorbelRibZ_${idx}`, 2.5, 2 / 12, 0.22, 0, 1 / 12, pos, trimMat);\n }\n } else if (id === \"c12_stair_flight\") {\n const steps = 10, sw = 1.5, stepH = 3 / steps, stepD = 3 / steps;\n for (let i = 0; i < steps; i++) {\n const h = (i + 1) * stepH * 0.28 + 0.08, yTop = (i + 1) * stepH, z = -1.5 + (i + 0.5) * stepD;\n addPartBox(root, `StairTread_${i}`, sw - 0.14, h, stepD, 0, yTop - h * 0.5, z, woodMat);\n }\n addPartBox(root, \"LandingBase\", sw, 1 / 12, 0.3, 0, 1 / 24, -1.35, trimMat);\n for (const [tag, sx] of [[\"L\", -1], [\"R\", 1]] as const) {\n const str = addPartBox(root, `StairStringer_${tag}`, 0.06, 0.16, 3.6, sx * (sw * 0.5 - 0.03), 1.42, 0, trimMat);\n str.rotation.x = -Math.PI * 0.25;\n const rail = addPartBox(root, `StairHandrail_${tag}`, 0.05, 0.05, 2.8, sx * (sw * 0.5 - 0.03), 1.96, -0.12, woodMat);\n rail.rotation.x = -0.62;\n addPartBox(root, `NewelLow_${tag}`, 0.06, 1.05, 0.06, sx * (sw * 0.5 - 0.03), 0.525, -1.44, trimMat);\n addPartBox(root, `NewelHigh_${tag}`, 0.06, 0.6, 0.06, sx * (sw * 0.5 - 0.03), 2.7, 1.44, trimMat);\n }\n } else if (id === \"c12_gable_roof\") {\n addPartBox(root, \"EaveBeam_L\", 0.18, 1 / 6, 3, -1.41, 1 / 12, 0, trimMat);\n addPartBox(root, \"EaveBeam_R\", 0.18, 1 / 6, 3, 1.41, 1 / 12, 0, trimMat);\n addPartBox(root, \"RidgeBeam\", 0.18, 0.18, 3, 0, 1.41, 0, trimMat);\n const slopeL = addPartBox(root, \"RoofSlope_L\", 1.92, 0.1, 3, -0.74, 0.78, 0, woodMat);\n slopeL.rotation.z = 0.72;\n const slopeR = addPartBox(root, \"RoofSlope_R\", 1.92, 0.1, 3, 0.74, 0.78, 0, woodMat);\n slopeR.rotation.z = -0.72;\n for (const [tag, z] of [[\"Front\", 1.42], [\"Back\", -1.42]] as const) {\n const tri = new THREE.Shape([new THREE.Vector2(-1.38, 0.12), new THREE.Vector2(1.38, 0.12), new THREE.Vector2(0, 1.38)]);\n const raw = new THREE.ExtrudeGeometry(tri, { depth: 0.12, bevelEnabled: false });\n const g = raw.index ? raw.toNonIndexed() : raw;\n if (raw.index) raw.dispose();\n g.translate(0, 0, z - 0.06);\n g.computeVertexNormals();\n const m = new THREE.Mesh(g, wallMat);\n m.name = `GablePediment_${tag}`;\n root.add(m);\n }\n } else if (id === \"c12_hex_wing\") {\n addC12CornerFooters(root, trimMat);\n const wedge = new THREE.Shape([new THREE.Vector2(-1.5, -1.25), new THREE.Vector2(1.5, -1.25), new THREE.Vector2(0, 1.35)]);\n const raw = new THREE.ExtrudeGeometry(wedge, { depth: 0.16, bevelEnabled: false });\n const deckGeo = raw.index ? raw.toNonIndexed() : raw;\n if (raw.index) raw.dispose();\n deckGeo.rotateX(Math.PI * 0.5);\n deckGeo.translate(0, 0.16, 0);\n deckGeo.computeVertexNormals();\n const deck = new THREE.Mesh(deckGeo, trimMat);\n deck.name = \"HexFloorWedge\";\n const cap = new THREE.Mesh(deckGeo.clone(), trimMat);\n cap.name = \"HexCeilingWedge\";\n cap.position.y = 2.84;\n root.add(deck, cap);\n for (const [tag, sx, yaw] of [[\"L\", -0.72, 0.5236], [\"R\", 0.72, -0.5236]] as const) {\n const w = addPartBox(root, `HexFacetWall_${tag}`, 0.14, 2.68, 2.4, sx, 1.5, 0.05, wallMat);\n w.rotation.y = yaw;\n }\n addPartBox(root, \"HexApexPillar\", 0.28, 3, 0.28, 0, 1.5, 1.32, trimMat);\n } else {\n addC12CornerFooters(root, trimMat);\n const ow = DOOR_HINGE_SPEC.openingWidthM, oh = DOOR_HINGE_SPEC.openingHeightM;\n const jw = (3 - ow) * 0.5;\n addPartBox(root, \"WallJamb_L\", jw, oh, T, -(ow * 0.5 + jw * 0.5), oh * 0.5, 0, wallMat);\n addPartBox(root, \"WallJamb_R\", jw, oh, T, ow * 0.5 + jw * 0.5, oh * 0.5, 0, wallMat);\n addPartBox(root, \"WallLintel\", 3, 3 - oh, T, 0, oh + (3 - oh) * 0.5, 0, wallMat);\n addPartBox(root, \"DoorFrame_L\", 0.05, oh, T + 0.04, -ow * 0.5 + 0.025, oh * 0.5, 0, trimMat);\n addPartBox(root, \"DoorFrame_R\", 0.05, oh, T + 0.04, ow * 0.5 - 0.025, oh * 0.5, 0, trimMat);\n addPartBox(root, \"DoorFrame_Top\", ow, 0.05, T + 0.04, 0, oh - 0.025, 0, trimMat);\n const leaf = buildDoorLeafMesh(ow - 0.012, oh - 0.02, 0.046, 0xb45309, 0xfbbf24);\n leaf.position.set(...DOOR_HINGE_SPEC.hingeOffsetLocal);\n leaf.userData = { c12Role: \"DoorLeaf\", hingeOffsetLocal: [...DOOR_HINGE_SPEC.hingeOffsetLocal] };\n root.add(leaf);\n addKolmoSocket(root, \"Socket_DoorHinge\", [...DOOR_HINGE_SPEC.hingeOffsetLocal], \"hinge\");\n addKolmoSocket(root, \"Aperture_Doorway_900x2100\", [0, oh * 0.5, 0], \"mount\");\n }\n\n root.userData = { proceduralDomain: \"c12\", proceduralRecipeId: id };\n return root;\n}\n"],"mappings":";;;;AAsBA,IAAa,yBAAiF,OAAO,OAAO;CACxG;EAAE,IAAI;EAAoB,OAAO;EAAgB,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;CAC7G;EAAE,IAAI;EAAmB,OAAO;EAAe,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;CAC3G;EAAE,IAAI;EAAoB,OAAO;EAAgB,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;CAC7G;EAAE,IAAI;EAAoB,OAAO;EAAgB,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;CAC7G;EAAE,IAAI;EAAkB,OAAO;EAAc,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;CACzG;EAAE,IAAI;EAAgB,OAAO;EAAgB,QAAQ;EAAO,cAAc;EAAG,QAAQ;EAAG,OAAO;CAAU;AAC7G,CAAC;AAED,SAAgB,YAAY,OAAe,YAAY,KAAM,YAAY,KAAM,UAA+C;CAC1H,OAAO,IAAI,MAAM,qBAAqB;EAClC;EACA;EACA;EACA,aAAa;EACb,GAAI,WAAW;GAAE;GAAU,mBAAm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, type JunkProceduralRecipeId } from "../junk/junkProceduralScenes.js";
3
- import { C12_PROCEDURAL_RECIPES, buildProceduralC12Scene, type C12ProceduralRecipeId, type ProceduralRecipeSpec } from "./proceduralC12AndCraft.js";
4
- import { PERSON_PROCEDURAL_RECIPES, PROP_PROCEDURAL_RECIPES, buildProceduralPersonScene, buildProceduralPropScene, type PersonProceduralRecipeId, type PropProceduralRecipeId } from "./proceduralPersonAndProp.js";
5
- export type CraftProceduralRecipeId = "starfighter_delta" | "vtol_dropship" | "hover_skiff" | "orbital_lander";
6
- export declare const CRAFT_PROCEDURAL_RECIPES: readonly ProceduralRecipeSpec<CraftProceduralRecipeId>[];
7
- export declare function buildProceduralCraftScene(recipeOrId?: CraftProceduralRecipeId | ProceduralRecipeSpec | string): THREE.Group;
8
- export type ProceduralBuilderDomain = "c12" | "craft" | "person" | "prop" | "junk";
9
- export declare function buildProceduralDomainScene(domain: ProceduralBuilderDomain, recipeId?: string): THREE.Group;
10
- export { C12_PROCEDURAL_RECIPES, JUNK_PROCEDURAL_RECIPES, PERSON_PROCEDURAL_RECIPES, PROP_PROCEDURAL_RECIPES, buildProceduralC12Scene, buildProceduralJunkScene, buildProceduralPersonScene, buildProceduralPropScene, type C12ProceduralRecipeId, type JunkProceduralRecipe, type JunkProceduralRecipeId, type PersonProceduralRecipeId, type PropProceduralRecipeId, type ProceduralRecipeSpec, };