@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.
- package/README.md +39 -93
- package/dist/engine/actor.d.ts +13 -0
- package/dist/engine/{kolmoGltfLoader.d.ts → gltfLoader.d.ts} +6 -3
- package/dist/engine/index.d.ts +8 -17
- package/dist/engine/index.js +1270 -27
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/{kolmoInput.d.ts → input.d.ts} +7 -6
- package/dist/engine/surface.d.ts +19 -0
- package/dist/engine/{kolmoTraits.d.ts → traits.d.ts} +18 -47
- package/dist/engine/vehicle.d.ts +20 -0
- package/dist/engine/world.d.ts +76 -0
- package/dist/index.d.ts +12 -18
- package/dist/index.js +14 -116
- package/dist/physics/index.js +1 -131
- package/dist/physics-FhWvTBfH.js +424 -0
- package/dist/physics-FhWvTBfH.js.map +1 -0
- package/package.json +31 -85
- package/AGENTS.md +0 -29
- package/CLAUDE.md +0 -8
- package/bin/kolmo.mjs +0 -561
- package/dist/engine/causewayBridge.d.ts +0 -14
- package/dist/engine/causewayBridge.js +0 -166
- package/dist/engine/causewayBridge.js.map +0 -1
- package/dist/engine/islandSettlementMesh.d.ts +0 -26
- package/dist/engine/islandSettlementMesh.js +0 -166
- package/dist/engine/islandSettlementMesh.js.map +0 -1
- package/dist/engine/kolmoActions.d.ts +0 -23
- package/dist/engine/kolmoActions.js +0 -179
- package/dist/engine/kolmoActions.js.map +0 -1
- package/dist/engine/kolmoActor.d.ts +0 -21
- package/dist/engine/kolmoActor.js +0 -273
- package/dist/engine/kolmoActor.js.map +0 -1
- package/dist/engine/kolmoActorHelpers.d.ts +0 -24
- package/dist/engine/kolmoActorHelpers.js +0 -64
- package/dist/engine/kolmoActorHelpers.js.map +0 -1
- package/dist/engine/kolmoBotControl.d.ts +0 -44
- package/dist/engine/kolmoBotControl.js +0 -194
- package/dist/engine/kolmoBotControl.js.map +0 -1
- package/dist/engine/kolmoBotJournal.d.ts +0 -23
- package/dist/engine/kolmoBotJournal.js +0 -138
- package/dist/engine/kolmoBotJournal.js.map +0 -1
- package/dist/engine/kolmoFloatingOrigin.d.ts +0 -17
- package/dist/engine/kolmoFloatingOrigin.js +0 -91
- package/dist/engine/kolmoFloatingOrigin.js.map +0 -1
- package/dist/engine/kolmoGame.d.ts +0 -27
- package/dist/engine/kolmoGame.js +0 -83
- package/dist/engine/kolmoGame.js.map +0 -1
- package/dist/engine/kolmoGltfLoader.js +0 -46
- package/dist/engine/kolmoGltfLoader.js.map +0 -1
- package/dist/engine/kolmoHud.d.ts +0 -23
- package/dist/engine/kolmoHud.js +0 -219
- package/dist/engine/kolmoHud.js.map +0 -1
- package/dist/engine/kolmoInput.js +0 -165
- package/dist/engine/kolmoInput.js.map +0 -1
- package/dist/engine/kolmoIsland.d.ts +0 -14
- package/dist/engine/kolmoIsland.js +0 -243
- package/dist/engine/kolmoIsland.js.map +0 -1
- package/dist/engine/kolmoLongDrive.d.ts +0 -12
- package/dist/engine/kolmoLongDrive.js +0 -178
- package/dist/engine/kolmoLongDrive.js.map +0 -1
- package/dist/engine/kolmoPilotMesh.d.ts +0 -6
- package/dist/engine/kolmoPilotMesh.js +0 -377
- package/dist/engine/kolmoPilotMesh.js.map +0 -1
- package/dist/engine/kolmoProcedural.d.ts +0 -13
- package/dist/engine/kolmoProcedural.js +0 -101
- package/dist/engine/kolmoProcedural.js.map +0 -1
- package/dist/engine/kolmoRigs.d.ts +0 -13
- package/dist/engine/kolmoRigs.js +0 -100
- package/dist/engine/kolmoRigs.js.map +0 -1
- package/dist/engine/kolmoStore.d.ts +0 -3
- package/dist/engine/kolmoStore.js +0 -4
- package/dist/engine/kolmoStore.js.map +0 -1
- package/dist/engine/kolmoSurface.d.ts +0 -18
- package/dist/engine/kolmoSurface.js +0 -198
- package/dist/engine/kolmoSurface.js.map +0 -1
- package/dist/engine/kolmoTouchOverlay.d.ts +0 -21
- package/dist/engine/kolmoTouchOverlay.js +0 -326
- package/dist/engine/kolmoTouchOverlay.js.map +0 -1
- package/dist/engine/kolmoTouchState.d.ts +0 -50
- package/dist/engine/kolmoTouchState.js +0 -210
- package/dist/engine/kolmoTouchState.js.map +0 -1
- package/dist/engine/kolmoTraits.js +0 -140
- package/dist/engine/kolmoTraits.js.map +0 -1
- package/dist/engine/kolmoVehicle.d.ts +0 -4
- package/dist/engine/kolmoVehicle.js +0 -80
- package/dist/engine/kolmoVehicle.js.map +0 -1
- package/dist/engine/kolmoVehicleAutoCompile.d.ts +0 -11
- package/dist/engine/kolmoVehicleAutoCompile.js +0 -94
- package/dist/engine/kolmoVehicleAutoCompile.js.map +0 -1
- package/dist/engine/kolmoVehicleConfig.d.ts +0 -56
- package/dist/engine/kolmoVehicleConfig.js +0 -84
- package/dist/engine/kolmoVehicleConfig.js.map +0 -1
- package/dist/engine/kolmoVehicleDriver.d.ts +0 -39
- package/dist/engine/kolmoVehicleDriver.js +0 -147
- package/dist/engine/kolmoVehicleDriver.js.map +0 -1
- package/dist/engine/kolmoVehicleInner.d.ts +0 -7
- package/dist/engine/kolmoVehicleInner.js +0 -307
- package/dist/engine/kolmoVehicleInner.js.map +0 -1
- package/dist/engine/kolmoWardrobeRig.d.ts +0 -22
- package/dist/engine/kolmoWardrobeRig.js +0 -146
- package/dist/engine/kolmoWardrobeRig.js.map +0 -1
- package/dist/engine/kolmoWorld.d.ts +0 -45
- package/dist/engine/kolmoWorld.js +0 -164
- package/dist/engine/kolmoWorld.js.map +0 -1
- package/dist/engine/longDriveKit.d.ts +0 -19
- package/dist/engine/longDriveKit.js +0 -145
- package/dist/engine/longDriveKit.js.map +0 -1
- package/dist/engine/longDriveRoadside.d.ts +0 -16
- package/dist/engine/longDriveRoadside.js +0 -171
- package/dist/engine/longDriveRoadside.js.map +0 -1
- package/dist/engine/macroCellBuilder.d.ts +0 -44
- package/dist/engine/macroCellBuilder.js +0 -228
- package/dist/engine/macroCellBuilder.js.map +0 -1
- package/dist/engine/mainlandMacroCell.d.ts +0 -15
- package/dist/engine/mainlandMacroCell.js +0 -168
- package/dist/engine/mainlandMacroCell.js.map +0 -1
- package/dist/engine/shiftedFixedBody.d.ts +0 -13
- package/dist/engine/shiftedFixedBody.js +0 -75
- package/dist/engine/shiftedFixedBody.js.map +0 -1
- package/dist/importer/ChopShopPanel.d.ts +0 -52
- package/dist/importer/ChopShopPanel.js +0 -409
- package/dist/importer/ChopShopPanel.js.map +0 -1
- package/dist/importer/DomainWorkshopPanel.d.ts +0 -25
- package/dist/importer/DomainWorkshopPanel.js +0 -385
- package/dist/importer/DomainWorkshopPanel.js.map +0 -1
- package/dist/importer/GateHudBar.d.ts +0 -39
- package/dist/importer/GateHudBar.js +0 -401
- package/dist/importer/GateHudBar.js.map +0 -1
- package/dist/importer/GlbImportGate.d.ts +0 -8
- package/dist/importer/GlbImportGate.js +0 -300
- package/dist/importer/GlbImportGate.js.map +0 -1
- package/dist/importer/ImperativeVehicleRig.d.ts +0 -9
- package/dist/importer/ImperativeVehicleRig.js +0 -274
- package/dist/importer/ImperativeVehicleRig.js.map +0 -1
- package/dist/importer/LiveDrivePads.d.ts +0 -20
- package/dist/importer/LiveDrivePads.js +0 -195
- package/dist/importer/LiveDrivePads.js.map +0 -1
- package/dist/importer/PaperShellDebrisRig.d.ts +0 -25
- package/dist/importer/PaperShellDebrisRig.js +0 -143
- package/dist/importer/PaperShellDebrisRig.js.map +0 -1
- package/dist/importer/R2VaultDrawer.d.ts +0 -12
- package/dist/importer/R2VaultDrawer.js +0 -90
- package/dist/importer/R2VaultDrawer.js.map +0 -1
- package/dist/importer/Step1CalibrationPlinth.d.ts +0 -56
- package/dist/importer/Step1CalibrationPlinth.js +0 -204
- package/dist/importer/Step1CalibrationPlinth.js.map +0 -1
- package/dist/importer/Step1ExplodedIslands.d.ts +0 -31
- package/dist/importer/Step1ExplodedIslands.js +0 -144
- package/dist/importer/Step1ExplodedIslands.js.map +0 -1
- package/dist/importer/Step2UniversalPad.d.ts +0 -18
- package/dist/importer/Step2UniversalPad.js +0 -123
- package/dist/importer/Step2UniversalPad.js.map +0 -1
- package/dist/importer/VfxEmitterPool.d.ts +0 -8
- package/dist/importer/VfxEmitterPool.js +0 -64
- package/dist/importer/VfxEmitterPool.js.map +0 -1
- package/dist/importer/WardrobeWorkshopPanel.d.ts +0 -15
- package/dist/importer/WardrobeWorkshopPanel.js +0 -529
- package/dist/importer/WardrobeWorkshopPanel.js.map +0 -1
- package/dist/importer/WheelRingHandles3D.d.ts +0 -11
- package/dist/importer/WheelRingHandles3D.js +0 -319
- package/dist/importer/WheelRingHandles3D.js.map +0 -1
- package/dist/importer/archLinerGeom.d.ts +0 -2
- package/dist/importer/archLinerGeom.js +0 -51
- package/dist/importer/archLinerGeom.js.map +0 -1
- package/dist/importer/chopHingeHelpers.d.ts +0 -15
- package/dist/importer/chopHingeHelpers.js +0 -193
- package/dist/importer/chopHingeHelpers.js.map +0 -1
- package/dist/importer/chopShopActions.d.ts +0 -58
- package/dist/importer/chopShopActions.js +0 -165
- package/dist/importer/chopShopActions.js.map +0 -1
- package/dist/importer/chopShopHandlers.d.ts +0 -26
- package/dist/importer/chopShopHandlers.js +0 -283
- package/dist/importer/chopShopHandlers.js.map +0 -1
- package/dist/importer/chopShopIoActions.d.ts +0 -20
- package/dist/importer/chopShopIoActions.js +0 -192
- package/dist/importer/chopShopIoActions.js.map +0 -1
- package/dist/importer/chopShopMcpAction.d.ts +0 -18
- package/dist/importer/chopShopMcpAction.js +0 -58
- package/dist/importer/chopShopMcpAction.js.map +0 -1
- package/dist/importer/cylinderBooleanSlice.d.ts +0 -14
- package/dist/importer/cylinderBooleanSlice.js +0 -110
- package/dist/importer/cylinderBooleanSlice.js.map +0 -1
- package/dist/importer/cylinderSliceMath.d.ts +0 -14
- package/dist/importer/cylinderSliceMath.js +0 -251
- package/dist/importer/cylinderSliceMath.js.map +0 -1
- package/dist/importer/fusedWheelDetect.d.ts +0 -4
- package/dist/importer/fusedWheelDetect.js +0 -297
- package/dist/importer/fusedWheelDetect.js.map +0 -1
- package/dist/importer/fusedWheelFit.d.ts +0 -19
- package/dist/importer/fusedWheelFit.js +0 -219
- package/dist/importer/fusedWheelFit.js.map +0 -1
- package/dist/importer/gateStore.d.ts +0 -73
- package/dist/importer/gateStore.js +0 -102
- package/dist/importer/gateStore.js.map +0 -1
- package/dist/importer/glbNormalizer.d.ts +0 -22
- package/dist/importer/glbNormalizer.js +0 -177
- package/dist/importer/glbNormalizer.js.map +0 -1
- package/dist/importer/importerWebMcp.d.ts +0 -51
- package/dist/importer/importerWebMcp.js +0 -50
- package/dist/importer/importerWebMcp.js.map +0 -1
- package/dist/importer/importerWebMcpTools.d.ts +0 -2
- package/dist/importer/importerWebMcpTools.js +0 -368
- package/dist/importer/importerWebMcpTools.js.map +0 -1
- package/dist/importer/index.d.ts +0 -29
- package/dist/importer/index.js +0 -42
- package/dist/importer/index.js.map +0 -1
- package/dist/importer/khrCarGeometryMass.d.ts +0 -20
- package/dist/importer/khrCarGeometryMass.js +0 -131
- package/dist/importer/khrCarGeometryMass.js.map +0 -1
- package/dist/importer/khrCarPlanHelpers.d.ts +0 -39
- package/dist/importer/khrCarPlanHelpers.js +0 -300
- package/dist/importer/khrCarPlanHelpers.js.map +0 -1
- package/dist/importer/khrCarPlanner.d.ts +0 -8
- package/dist/importer/khrCarPlanner.js +0 -289
- package/dist/importer/khrCarPlanner.js.map +0 -1
- package/dist/importer/khrCompiler.d.ts +0 -5
- package/dist/importer/khrCompiler.js +0 -87
- package/dist/importer/khrCompiler.js.map +0 -1
- package/dist/importer/khrCraftPropCompiler.d.ts +0 -45
- package/dist/importer/khrCraftPropCompiler.js +0 -263
- package/dist/importer/khrCraftPropCompiler.js.map +0 -1
- package/dist/importer/khrNodeNameGuard.d.ts +0 -20
- package/dist/importer/khrNodeNameGuard.js +0 -139
- package/dist/importer/khrNodeNameGuard.js.map +0 -1
- package/dist/importer/launcherBake.d.ts +0 -15
- package/dist/importer/launcherBake.js +0 -117
- package/dist/importer/launcherBake.js.map +0 -1
- package/dist/importer/launcherCadGeometry.d.ts +0 -22
- package/dist/importer/launcherCadGeometry.js +0 -185
- package/dist/importer/launcherCadGeometry.js.map +0 -1
- package/dist/importer/meshIslands.d.ts +0 -17
- package/dist/importer/meshIslands.js +0 -102
- package/dist/importer/meshIslands.js.map +0 -1
- package/dist/importer/meshSliceBuffers.d.ts +0 -15
- package/dist/importer/meshSliceBuffers.js +0 -159
- package/dist/importer/meshSliceBuffers.js.map +0 -1
- package/dist/importer/polygonEarClipYZ.d.ts +0 -3
- package/dist/importer/polygonEarClipYZ.js +0 -67
- package/dist/importer/polygonEarClipYZ.js.map +0 -1
- package/dist/importer/proceduralC12AndCraft.d.ts +0 -18
- package/dist/importer/proceduralC12AndCraft.js +0 -302
- package/dist/importer/proceduralC12AndCraft.js.map +0 -1
- package/dist/importer/proceduralDomainBuilders.d.ts +0 -10
- package/dist/importer/proceduralDomainBuilders.js +0 -346
- package/dist/importer/proceduralDomainBuilders.js.map +0 -1
- package/dist/importer/proceduralPersonAndProp.d.ts +0 -8
- package/dist/importer/proceduralPersonAndProp.js +0 -303
- package/dist/importer/proceduralPersonAndProp.js.map +0 -1
- package/dist/importer/sceneSiNormalize.d.ts +0 -19
- package/dist/importer/sceneSiNormalize.js +0 -145
- package/dist/importer/sceneSiNormalize.js.map +0 -1
- package/dist/importer/starterScene.d.ts +0 -5
- package/dist/importer/starterScene.js +0 -139
- package/dist/importer/starterScene.js.map +0 -1
- package/dist/importer/surfaceCutter.d.ts +0 -16
- package/dist/importer/surfaceCutter.js +0 -83
- package/dist/importer/surfaceCutter.js.map +0 -1
- package/dist/importer/surfaceGeodesic.d.ts +0 -7
- package/dist/importer/surfaceGeodesic.js +0 -130
- package/dist/importer/surfaceGeodesic.js.map +0 -1
- package/dist/importer/surfaceLoopRefine.d.ts +0 -6
- package/dist/importer/surfaceLoopRefine.js +0 -171
- package/dist/importer/surfaceLoopRefine.js.map +0 -1
- package/dist/importer/surfacePeel.d.ts +0 -11
- package/dist/importer/surfacePeel.js +0 -119
- package/dist/importer/surfacePeel.js.map +0 -1
- package/dist/importer/surfaceTopology.d.ts +0 -36
- package/dist/importer/surfaceTopology.js +0 -143
- package/dist/importer/surfaceTopology.js.map +0 -1
- package/dist/importer/universalGateBake.d.ts +0 -45
- package/dist/importer/universalGateBake.js +0 -203
- package/dist/importer/universalGateBake.js.map +0 -1
- package/dist/importer/usdPhysicsSpecs.d.ts +0 -3
- package/dist/importer/usdPhysicsSpecs.js +0 -245
- package/dist/importer/usdPhysicsSpecs.js.map +0 -1
- package/dist/importer/usdTextParse.d.ts +0 -12
- package/dist/importer/usdTextParse.js +0 -118
- package/dist/importer/usdTextParse.js.map +0 -1
- package/dist/importer/usdToGlb.d.ts +0 -12
- package/dist/importer/usdToGlb.js +0 -94
- package/dist/importer/usdToGlb.js.map +0 -1
- package/dist/importer/useChopShopController.d.ts +0 -110
- package/dist/importer/useChopShopController.js +0 -219
- package/dist/importer/useChopShopController.js.map +0 -1
- package/dist/importer/useChopShopState.d.ts +0 -103
- package/dist/importer/useChopShopState.js +0 -350
- package/dist/importer/useChopShopState.js.map +0 -1
- package/dist/importer/useWasdKeyRef.d.ts +0 -9
- package/dist/importer/useWasdKeyRef.js +0 -35
- package/dist/importer/useWasdKeyRef.js.map +0 -1
- package/dist/importer/vehiclePartSplit.d.ts +0 -33
- package/dist/importer/vehiclePartSplit.js +0 -183
- package/dist/importer/vehiclePartSplit.js.map +0 -1
- package/dist/importer/wardrobeAutoFit.d.ts +0 -16
- package/dist/importer/wardrobeAutoFit.js +0 -410
- package/dist/importer/wardrobeAutoFit.js.map +0 -1
- package/dist/importer/wardrobeCatalog.d.ts +0 -16
- package/dist/importer/wardrobeCatalog.js +0 -409
- package/dist/importer/wardrobeCatalog.js.map +0 -1
- package/dist/importer/wardrobeController.d.ts +0 -49
- package/dist/importer/wardrobeController.js +0 -181
- package/dist/importer/wardrobeController.js.map +0 -1
- package/dist/importer/wardrobeFitter.d.ts +0 -27
- package/dist/importer/wardrobeFitter.js +0 -269
- package/dist/importer/wardrobeFitter.js.map +0 -1
- package/dist/importer/wardrobeWebMcpTools.d.ts +0 -2
- package/dist/importer/wardrobeWebMcpTools.js +0 -198
- package/dist/importer/wardrobeWebMcpTools.js.map +0 -1
- package/dist/importer/wheelAxlePairing.d.ts +0 -21
- package/dist/importer/wheelAxlePairing.js +0 -157
- package/dist/importer/wheelAxlePairing.js.map +0 -1
- package/dist/importer/wheelCutterHelpers.d.ts +0 -45
- package/dist/importer/wheelCutterHelpers.js +0 -208
- package/dist/importer/wheelCutterHelpers.js.map +0 -1
- package/dist/importer/wheelRingHandleMath.d.ts +0 -20
- package/dist/importer/wheelRingHandleMath.js +0 -66
- package/dist/importer/wheelRingHandleMath.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/junk/DestructibleTarget.d.ts +0 -18
- package/dist/junk/DestructibleTarget.js +0 -223
- package/dist/junk/DestructibleTarget.js.map +0 -1
- package/dist/junk/KolmoJunk.d.ts +0 -14
- package/dist/junk/KolmoJunk.js +0 -76
- package/dist/junk/KolmoJunk.js.map +0 -1
- package/dist/junk/ShardPieces.d.ts +0 -13
- package/dist/junk/ShardPieces.js +0 -101
- package/dist/junk/ShardPieces.js.map +0 -1
- package/dist/junk/TargetDecals.d.ts +0 -9
- package/dist/junk/TargetDecals.js +0 -77
- package/dist/junk/TargetDecals.js.map +0 -1
- package/dist/junk/bvhShatter.d.ts +0 -3
- package/dist/junk/bvhShatter.js +0 -101
- package/dist/junk/bvhShatter.js.map +0 -1
- package/dist/junk/bvhTriCollector.d.ts +0 -16
- package/dist/junk/bvhTriCollector.js +0 -127
- package/dist/junk/bvhTriCollector.js.map +0 -1
- package/dist/junk/index.d.ts +0 -14
- package/dist/junk/index.js +0 -13
- package/dist/junk/index.js.map +0 -1
- package/dist/junk/junkGeometry.d.ts +0 -13
- package/dist/junk/junkGeometry.js +0 -87
- package/dist/junk/junkGeometry.js.map +0 -1
- package/dist/junk/junkImportSanitize.d.ts +0 -5
- package/dist/junk/junkImportSanitize.js +0 -74
- package/dist/junk/junkImportSanitize.js.map +0 -1
- package/dist/junk/junkImporter.d.ts +0 -14
- package/dist/junk/junkImporter.js +0 -124
- package/dist/junk/junkImporter.js.map +0 -1
- package/dist/junk/junkLabelCanvas.d.ts +0 -2
- package/dist/junk/junkLabelCanvas.js +0 -185
- package/dist/junk/junkLabelCanvas.js.map +0 -1
- package/dist/junk/junkLabels.d.ts +0 -9
- package/dist/junk/junkLabels.js +0 -49
- package/dist/junk/junkLabels.js.map +0 -1
- package/dist/junk/junkProceduralScenes.d.ts +0 -12
- package/dist/junk/junkProceduralScenes.js +0 -220
- package/dist/junk/junkProceduralScenes.js.map +0 -1
- package/dist/junk/junkSheetSplitter.d.ts +0 -38
- package/dist/junk/junkSheetSplitter.js +0 -104
- package/dist/junk/junkSheetSplitter.js.map +0 -1
- package/dist/junk/junkTypes.d.ts +0 -48
- package/dist/junk/junkTypes.js +0 -0
- package/dist/junk/junkTypes.js.map +0 -1
- package/dist/junk/targetHelpers.d.ts +0 -55
- package/dist/junk/targetHelpers.js +0 -157
- package/dist/junk/targetHelpers.js.map +0 -1
- package/dist/junk/targetHitLogic.d.ts +0 -30
- package/dist/junk/targetHitLogic.js +0 -163
- package/dist/junk/targetHitLogic.js.map +0 -1
- package/dist/junk/useTargetAssets.d.ts +0 -19
- package/dist/junk/useTargetAssets.js +0 -130
- package/dist/junk/useTargetAssets.js.map +0 -1
- package/dist/physics/index.js.map +0 -1
- package/dist/physics/nBodyGravity.js +0 -70
- package/dist/physics/nBodyGravity.js.map +0 -1
- package/dist/sand3d/KolmoSand3D.d.ts +0 -19
- package/dist/sand3d/KolmoSand3D.js +0 -92
- package/dist/sand3d/KolmoSand3D.js.map +0 -1
- package/dist/sand3d/Sand3dWorkshopSection.d.ts +0 -8
- package/dist/sand3d/Sand3dWorkshopSection.js +0 -117
- package/dist/sand3d/Sand3dWorkshopSection.js.map +0 -1
- package/dist/sand3d/gateBakeHelpers.d.ts +0 -21
- package/dist/sand3d/gateBakeHelpers.js +0 -225
- package/dist/sand3d/gateBakeHelpers.js.map +0 -1
- package/dist/sand3d/gateDoorwayBake.d.ts +0 -12
- package/dist/sand3d/gateDoorwayBake.js +0 -203
- package/dist/sand3d/gateDoorwayBake.js.map +0 -1
- package/dist/sand3d/index.d.ts +0 -3
- package/dist/sand3d/index.js +0 -4
- package/dist/sand3d/index.js.map +0 -1
- package/dist/sand3d/sand3dAssetLoader.d.ts +0 -28
- package/dist/sand3d/sand3dAssetLoader.js +0 -177
- package/dist/sand3d/sand3dAssetLoader.js.map +0 -1
- package/dist/schema/kolmoSchema.d.ts +0 -9
- package/dist/schema/kolmoSchema.js +0 -110
- package/dist/schema/kolmoSchema.js.map +0 -1
- package/dist/schema/kolmoStamp.d.ts +0 -11
- package/dist/schema/kolmoStamp.js +0 -119
- package/dist/schema/kolmoStamp.js.map +0 -1
- package/dist/schema/kolmoTypes.d.ts +0 -63
- package/dist/schema/kolmoTypes.js +0 -66
- package/dist/schema/kolmoTypes.js.map +0 -1
- package/dist/shaders/celestialBackdrop.d.ts +0 -14
- package/dist/shaders/celestialBackdrop.js +0 -181
- package/dist/shaders/celestialBackdrop.js.map +0 -1
- package/dist/shaders/emitterShaders.d.ts +0 -9
- package/dist/shaders/emitterShaders.js +0 -114
- package/dist/shaders/emitterShaders.js.map +0 -1
- package/dist/shaders/index.d.ts +0 -5
- package/dist/shaders/index.js +0 -12
- package/dist/shaders/index.js.map +0 -1
- package/dist/shaders/plumeAndSparkle.d.ts +0 -12
- package/dist/shaders/plumeAndSparkle.js +0 -233
- package/dist/shaders/plumeAndSparkle.js.map +0 -1
- package/dist/shaders/ps2GlslShared.d.ts +0 -20
- package/dist/shaders/ps2GlslShared.js +0 -30
- package/dist/shaders/ps2GlslShared.js.map +0 -1
- package/dist/shaders/ps2MaterialsTSL.d.ts +0 -23
- package/dist/shaders/ps2MaterialsTSL.js +0 -146
- package/dist/shaders/ps2MaterialsTSL.js.map +0 -1
- package/dist/shaders/ps2MaterialsWebGL.d.ts +0 -15
- package/dist/shaders/ps2MaterialsWebGL.js +0 -57
- package/dist/shaders/ps2MaterialsWebGL.js.map +0 -1
- package/dist/shaders/ps2RoadWebGL.d.ts +0 -7
- package/dist/shaders/ps2RoadWebGL.js +0 -138
- package/dist/shaders/ps2RoadWebGL.js.map +0 -1
- package/dist/shaders/ps2TerrainWebGL.d.ts +0 -8
- package/dist/shaders/ps2TerrainWebGL.js +0 -131
- package/dist/shaders/ps2TerrainWebGL.js.map +0 -1
- package/dist/shaders/ps2Textures.d.ts +0 -22
- package/dist/shaders/ps2Textures.js +0 -299
- package/dist/shaders/ps2Textures.js.map +0 -1
- package/dist/shaders/retroPalettes.d.ts +0 -24
- package/dist/shaders/retroPalettes.js +0 -221
- package/dist/shaders/retroPalettes.js.map +0 -1
- package/dist/shaders/retroShader.d.ts +0 -13
- package/dist/shaders/retroShader.js +0 -110
- package/dist/shaders/retroShader.js.map +0 -1
- package/dist/shaders/retroUniforms.d.ts +0 -60
- package/dist/shaders/retroUniforms.js +0 -215
- package/dist/shaders/retroUniforms.js.map +0 -1
- package/dist/shaders/skyboxShaders.d.ts +0 -16
- package/dist/shaders/skyboxShaders.js +0 -266
- package/dist/shaders/skyboxShaders.js.map +0 -1
- package/dist/shaders/tsl.d.ts +0 -1
- package/dist/shaders/tsl.js +0 -1
- package/dist/shaders/tsl.js.map +0 -1
- package/dist/suika/KolmoSuikaOrb.d.ts +0 -33
- package/dist/suika/KolmoSuikaOrb.js +0 -375
- package/dist/suika/KolmoSuikaOrb.js.map +0 -1
- package/dist/suika/index.d.ts +0 -4
- package/dist/suika/index.js +0 -5
- package/dist/suika/index.js.map +0 -1
- package/dist/suika/suikaArbiter.d.ts +0 -60
- package/dist/suika/suikaArbiter.js +0 -265
- package/dist/suika/suikaArbiter.js.map +0 -1
- package/dist/suika/suikaGeometry.d.ts +0 -10
- package/dist/suika/suikaGeometry.js +0 -251
- package/dist/suika/suikaGeometry.js.map +0 -1
- package/dist/suika/suikaTypes.d.ts +0 -74
- package/dist/suika/suikaTypes.js +0 -196
- package/dist/suika/suikaTypes.js.map +0 -1
- package/dist/world/frontage.d.ts +0 -26
- package/dist/world/frontage.js +0 -36
- package/dist/world/frontage.js.map +0 -1
- package/dist/world/index.d.ts +0 -9
- package/dist/world/index.js +0 -12
- package/dist/world/index.js.map +0 -1
- package/dist/world/infiniteWorld2D.d.ts +0 -19
- package/dist/world/infiniteWorld2D.js +0 -219
- package/dist/world/infiniteWorld2D.js.map +0 -1
- package/dist/world/island.d.ts +0 -29
- package/dist/world/island.js +0 -116
- package/dist/world/island.js.map +0 -1
- package/dist/world/islandPathing.d.ts +0 -6
- package/dist/world/islandPathing.js +0 -166
- package/dist/world/islandPathing.js.map +0 -1
- package/dist/world/macroCellSchema.d.ts +0 -72
- package/dist/world/macroCellSchema.js +0 -34
- package/dist/world/macroCellSchema.js.map +0 -1
- package/dist/world/macroKnightAStar.d.ts +0 -11
- package/dist/world/macroKnightAStar.js +0 -240
- package/dist/world/macroKnightAStar.js.map +0 -1
- package/dist/world/macroSettlementZones.d.ts +0 -9
- package/dist/world/macroSettlementZones.js +0 -108
- package/dist/world/macroSettlementZones.js.map +0 -1
- package/dist/world/random.d.ts +0 -23
- package/dist/world/random.js +0 -59
- package/dist/world/random.js.map +0 -1
- package/dist/world/road.d.ts +0 -37
- package/dist/world/road.js +0 -198
- package/dist/world/road.js.map +0 -1
- package/dist/world/roadRibbon.d.ts +0 -29
- package/dist/world/roadRibbon.js +0 -166
- package/dist/world/roadRibbon.js.map +0 -1
- package/dist/world/terrain.d.ts +0 -62
- package/dist/world/terrain.js +0 -133
- package/dist/world/terrain.js.map +0 -1
- package/dist/world/terrainGeometry.d.ts +0 -14
- package/dist/world/terrainGeometry.js +0 -76
- package/dist/world/terrainGeometry.js.map +0 -1
- package/dist/world/worldTypes.d.ts +0 -43
- package/dist/world/worldTypes.js +0 -197
- package/dist/world/worldTypes.js.map +0 -1
- package/docs/api-reference.md +0 -728
- package/skills/kolmo-engine/SKILL.md +0 -109
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { JUNK_PROCEDURAL_RECIPES, buildProceduralJunkScene } from "../junk/junkProceduralScenes.js";
|
|
2
|
-
import { C12_PROCEDURAL_RECIPES, addKolmoSocket, addPartBox, buildProceduralC12Scene, makeFlatMat } from "./proceduralC12AndCraft.js";
|
|
3
|
-
import { PERSON_PROCEDURAL_RECIPES, PROP_PROCEDURAL_RECIPES, buildProceduralPersonScene, buildProceduralPropScene } from "./proceduralPersonAndProp.js";
|
|
4
|
-
import * as THREE from "three";
|
|
5
|
-
// src/importer/proceduralDomainBuilders.ts
|
|
6
|
-
var CRAFT_PROCEDURAL_RECIPES = Object.freeze([
|
|
7
|
-
{
|
|
8
|
-
id: "starfighter_delta",
|
|
9
|
-
label: "Starfighter Delta",
|
|
10
|
-
domain: "craft",
|
|
11
|
-
targetMeters: 8.4,
|
|
12
|
-
massKg: 1450,
|
|
13
|
-
powerOrThrust: 24e3,
|
|
14
|
-
color: "#38bdf8"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: "vtol_dropship",
|
|
18
|
-
label: "VTOL Dropship",
|
|
19
|
-
domain: "craft",
|
|
20
|
-
targetMeters: 9.6,
|
|
21
|
-
massKg: 3200,
|
|
22
|
-
powerOrThrust: 46e3,
|
|
23
|
-
color: "#10b981"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "hover_skiff",
|
|
27
|
-
label: "Hover Skiff",
|
|
28
|
-
domain: "craft",
|
|
29
|
-
targetMeters: 5.4,
|
|
30
|
-
massKg: 620,
|
|
31
|
-
powerOrThrust: 9800,
|
|
32
|
-
color: "#f59e0b"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: "orbital_lander",
|
|
36
|
-
label: "Orbital Lander",
|
|
37
|
-
domain: "craft",
|
|
38
|
-
targetMeters: 6.2,
|
|
39
|
-
massKg: 2800,
|
|
40
|
-
powerOrThrust: 38e3,
|
|
41
|
-
color: "#eab308"
|
|
42
|
-
}
|
|
43
|
-
]);
|
|
44
|
-
function buildProceduralCraftScene(recipeOrId = "starfighter_delta") {
|
|
45
|
-
const id = typeof recipeOrId === "string" ? recipeOrId : recipeOrId.id;
|
|
46
|
-
const root = new THREE.Group();
|
|
47
|
-
root.name = id;
|
|
48
|
-
const glassMat = new THREE.MeshStandardMaterial({
|
|
49
|
-
color: "#7dd3fc",
|
|
50
|
-
transparent: true,
|
|
51
|
-
opacity: .42,
|
|
52
|
-
roughness: .1,
|
|
53
|
-
flatShading: true
|
|
54
|
-
});
|
|
55
|
-
const darkMat = makeFlatMat("#1e293b", .6, .35);
|
|
56
|
-
const glowMat = makeFlatMat("#22d3ee", .25, .1, "#06b6d4");
|
|
57
|
-
if (id === "vtol_dropship") {
|
|
58
|
-
const hullMat = makeFlatMat("#10b981", .48, .24), accentMat = makeFlatMat("#f59e0b", .45, .25);
|
|
59
|
-
addPartBox(root, "Fuselage", 2.2, 1.55, 6.2, 0, 1.15, -.2, hullMat);
|
|
60
|
-
const nose = new THREE.Mesh(new THREE.ConeGeometry(.86, 2.4, 6), hullMat);
|
|
61
|
-
nose.name = "Nosecone";
|
|
62
|
-
nose.rotation.x = Math.PI * .5;
|
|
63
|
-
nose.position.set(0, 1.04, 4);
|
|
64
|
-
root.add(nose);
|
|
65
|
-
addPartBox(root, "Canopy", 1.35, .72, 2.1, 0, 1.62, 2.4, glassMat);
|
|
66
|
-
addPartBox(root, "TailBoom", .9, .75, 2.8, 0, 1.65, -4.4, hullMat);
|
|
67
|
-
addPartBox(root, "TailFin", .22, 1.35, 1.4, 0, 2.55, -5.1, accentMat);
|
|
68
|
-
for (const [tag, sx] of [["L", 1], ["R", -1]]) {
|
|
69
|
-
addPartBox(root, `Wing_${tag}`, 2.6, .24, 1.6, sx * 2.3, 1.72, .2, hullMat);
|
|
70
|
-
addPartBox(root, `Skid_${tag}`, .18, .38, 4.2, sx * .92, .19, .2, darkMat);
|
|
71
|
-
for (const [zTag, pz] of [["F", 1.4], ["R", -2.2]]) {
|
|
72
|
-
const nx = sx * (zTag === "F" ? 3.5 : 2.1);
|
|
73
|
-
const nac = new THREE.Mesh(new THREE.CylinderGeometry(.36, .44, 1.1, 8), darkMat);
|
|
74
|
-
nac.name = `Nacelle_${zTag}${tag}`;
|
|
75
|
-
nac.position.set(nx, 1.55, pz);
|
|
76
|
-
root.add(nac);
|
|
77
|
-
addKolmoSocket(root, `Socket_Thruster_${zTag}${tag}`, [
|
|
78
|
-
nx,
|
|
79
|
-
.95,
|
|
80
|
-
pz
|
|
81
|
-
], "mount", {
|
|
82
|
-
kind: "plume",
|
|
83
|
-
drive: "throttle",
|
|
84
|
-
size: 1.1
|
|
85
|
-
}, [
|
|
86
|
-
-Math.PI * .5,
|
|
87
|
-
0,
|
|
88
|
-
0
|
|
89
|
-
]);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
addKolmoSocket(root, "Socket_Thruster_Aft", [
|
|
93
|
-
0,
|
|
94
|
-
1.55,
|
|
95
|
-
-5.85
|
|
96
|
-
], "mount", {
|
|
97
|
-
kind: "plume",
|
|
98
|
-
drive: "boost",
|
|
99
|
-
size: 1.3
|
|
100
|
-
});
|
|
101
|
-
addKolmoSocket(root, "Socket_Muzzle_Chin", [
|
|
102
|
-
0,
|
|
103
|
-
.55,
|
|
104
|
-
5.1
|
|
105
|
-
], "muzzle", {
|
|
106
|
-
kind: "flare",
|
|
107
|
-
drive: "fire",
|
|
108
|
-
size: .8
|
|
109
|
-
}, [
|
|
110
|
-
0,
|
|
111
|
-
Math.PI,
|
|
112
|
-
0
|
|
113
|
-
]);
|
|
114
|
-
addKolmoSocket(root, "Socket_seat_pilot", [
|
|
115
|
-
0,
|
|
116
|
-
1.15,
|
|
117
|
-
2.2
|
|
118
|
-
], "seat");
|
|
119
|
-
} else if (id === "hover_skiff") {
|
|
120
|
-
const hullMat = makeFlatMat("#f59e0b", .44, .22);
|
|
121
|
-
addPartBox(root, "SkiffDeck", 1.55, .46, 4.2, 0, .48, 0, hullMat);
|
|
122
|
-
const nose = new THREE.Mesh(new THREE.ConeGeometry(.52, 1.5, 5), hullMat);
|
|
123
|
-
nose.name = "Nosecone";
|
|
124
|
-
nose.rotation.x = Math.PI * .5;
|
|
125
|
-
nose.position.set(0, .56, 2.8);
|
|
126
|
-
root.add(nose);
|
|
127
|
-
addPartBox(root, "CanopyWindscreen", 1.1, .48, .65, 0, .92, .95, glassMat);
|
|
128
|
-
addPartBox(root, "PilotSeat", .56, .52, .52, 0, .88, -.15, darkMat);
|
|
129
|
-
for (const [tag, sx] of [["L", 1], ["R", -1]]) {
|
|
130
|
-
addPartBox(root, `Pontoon_${tag}`, .42, .34, 3.6, sx * 1.12, .36, .1, darkMat);
|
|
131
|
-
addPartBox(root, `Skid_${tag}`, .12, .18, 2.8, sx * .72, .09, 0, darkMat);
|
|
132
|
-
const duct = new THREE.Mesh(new THREE.CylinderGeometry(.34, .38, .75, 8), darkMat);
|
|
133
|
-
duct.name = `Nacelle_${tag}`;
|
|
134
|
-
duct.rotation.x = Math.PI * .5;
|
|
135
|
-
duct.position.set(sx * .52, .85, -2.05);
|
|
136
|
-
root.add(duct);
|
|
137
|
-
addKolmoSocket(root, `Socket_Thruster_${tag}`, [
|
|
138
|
-
sx * .52,
|
|
139
|
-
.85,
|
|
140
|
-
-2.45
|
|
141
|
-
], "mount", {
|
|
142
|
-
kind: "plume",
|
|
143
|
-
drive: "throttle",
|
|
144
|
-
size: .9
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
addKolmoSocket(root, "Socket_Thruster_Lift", [
|
|
148
|
-
0,
|
|
149
|
-
.22,
|
|
150
|
-
0
|
|
151
|
-
], "mount", {
|
|
152
|
-
kind: "plume",
|
|
153
|
-
drive: "throttle",
|
|
154
|
-
size: .8
|
|
155
|
-
}, [
|
|
156
|
-
-Math.PI * .5,
|
|
157
|
-
0,
|
|
158
|
-
0
|
|
159
|
-
]);
|
|
160
|
-
addKolmoSocket(root, "Socket_Muzzle_Bow", [
|
|
161
|
-
0,
|
|
162
|
-
.52,
|
|
163
|
-
3.55
|
|
164
|
-
], "muzzle", {
|
|
165
|
-
kind: "flare",
|
|
166
|
-
drive: "fire",
|
|
167
|
-
size: .65
|
|
168
|
-
}, [
|
|
169
|
-
0,
|
|
170
|
-
Math.PI,
|
|
171
|
-
0
|
|
172
|
-
]);
|
|
173
|
-
addKolmoSocket(root, "Socket_seat_pilot", [
|
|
174
|
-
0,
|
|
175
|
-
.82,
|
|
176
|
-
-.15
|
|
177
|
-
], "seat");
|
|
178
|
-
} else if (id === "orbital_lander") {
|
|
179
|
-
const goldMat = makeFlatMat("#eab308", .34, .68), cabinMat = makeFlatMat("#e2e8f0", .45, .22);
|
|
180
|
-
const desc = new THREE.Mesh(new THREE.CylinderGeometry(1.75, 1.85, 1.05, 8), goldMat);
|
|
181
|
-
desc.name = "DescentStage";
|
|
182
|
-
desc.position.y = 1.35;
|
|
183
|
-
root.add(desc);
|
|
184
|
-
const asc = new THREE.Mesh(new THREE.CylinderGeometry(1.25, 1.45, 1.45, 8), cabinMat);
|
|
185
|
-
asc.name = "AscentCabin";
|
|
186
|
-
asc.position.y = 2.62;
|
|
187
|
-
root.add(asc);
|
|
188
|
-
addPartBox(root, "CanopyCupola", 1.1, .62, .72, 0, 2.75, 1.18, glassMat);
|
|
189
|
-
const bell = new THREE.Mesh(new THREE.ConeGeometry(.58, .72, 10, 1, true), darkMat);
|
|
190
|
-
bell.name = "DescentBell";
|
|
191
|
-
bell.position.y = .62;
|
|
192
|
-
root.add(bell);
|
|
193
|
-
for (const [tag, sx, sz] of [
|
|
194
|
-
[
|
|
195
|
-
"FL",
|
|
196
|
-
1,
|
|
197
|
-
1
|
|
198
|
-
],
|
|
199
|
-
[
|
|
200
|
-
"FR",
|
|
201
|
-
-1,
|
|
202
|
-
1
|
|
203
|
-
],
|
|
204
|
-
[
|
|
205
|
-
"RL",
|
|
206
|
-
1,
|
|
207
|
-
-1
|
|
208
|
-
],
|
|
209
|
-
[
|
|
210
|
-
"RR",
|
|
211
|
-
-1,
|
|
212
|
-
-1
|
|
213
|
-
]
|
|
214
|
-
]) {
|
|
215
|
-
const pad = new THREE.Mesh(new THREE.CylinderGeometry(.34, .4, .08, 8), goldMat);
|
|
216
|
-
pad.name = `Footpad_${tag}`;
|
|
217
|
-
pad.position.set(sx * 2.1, .04, sz * 2.1);
|
|
218
|
-
root.add(pad);
|
|
219
|
-
addPartBox(root, `LandingStrut_${tag}`, .12, 1.32, .12, sx * 1.72, .74, sz * 1.72, darkMat).rotation.set(sz * .4, 0, -sx * .4);
|
|
220
|
-
}
|
|
221
|
-
addKolmoSocket(root, "Socket_Thruster_Descent", [
|
|
222
|
-
0,
|
|
223
|
-
.26,
|
|
224
|
-
0
|
|
225
|
-
], "mount", {
|
|
226
|
-
kind: "plume",
|
|
227
|
-
drive: "throttle",
|
|
228
|
-
size: 1.35
|
|
229
|
-
}, [
|
|
230
|
-
-Math.PI * .5,
|
|
231
|
-
0,
|
|
232
|
-
0
|
|
233
|
-
]);
|
|
234
|
-
addKolmoSocket(root, "Socket_Thruster_RCS_L", [
|
|
235
|
-
1.55,
|
|
236
|
-
2.8,
|
|
237
|
-
0
|
|
238
|
-
], "mount", {
|
|
239
|
-
kind: "plume",
|
|
240
|
-
drive: "throttle",
|
|
241
|
-
size: .55
|
|
242
|
-
}, [
|
|
243
|
-
-Math.PI * .5,
|
|
244
|
-
0,
|
|
245
|
-
0
|
|
246
|
-
]);
|
|
247
|
-
addKolmoSocket(root, "Socket_Thruster_RCS_R", [
|
|
248
|
-
-1.55,
|
|
249
|
-
2.8,
|
|
250
|
-
0
|
|
251
|
-
], "mount", {
|
|
252
|
-
kind: "plume",
|
|
253
|
-
drive: "throttle",
|
|
254
|
-
size: .55
|
|
255
|
-
}, [
|
|
256
|
-
-Math.PI * .5,
|
|
257
|
-
0,
|
|
258
|
-
0
|
|
259
|
-
]);
|
|
260
|
-
addKolmoSocket(root, "Socket_Muzzle_Probe", [
|
|
261
|
-
0,
|
|
262
|
-
2.1,
|
|
263
|
-
1.75
|
|
264
|
-
], "muzzle", {
|
|
265
|
-
kind: "flare",
|
|
266
|
-
drive: "fire",
|
|
267
|
-
size: .6
|
|
268
|
-
}, [
|
|
269
|
-
0,
|
|
270
|
-
Math.PI,
|
|
271
|
-
0
|
|
272
|
-
]);
|
|
273
|
-
addKolmoSocket(root, "Socket_seat_pilot", [
|
|
274
|
-
0,
|
|
275
|
-
2.45,
|
|
276
|
-
.45
|
|
277
|
-
], "seat");
|
|
278
|
-
} else {
|
|
279
|
-
const hullMat = makeFlatMat("#e2e8f0", .42, .24), trimMat = makeFlatMat("#0284c7", .44, .26);
|
|
280
|
-
addPartBox(root, "Fuselage", 1.45, .95, 5.2, 0, .88, -.3, hullMat);
|
|
281
|
-
const nose = new THREE.Mesh(new THREE.ConeGeometry(.68, 3.1, 6), trimMat);
|
|
282
|
-
nose.name = "Nosecone";
|
|
283
|
-
nose.rotation.x = Math.PI * .5;
|
|
284
|
-
nose.position.set(0, .84, 3.8);
|
|
285
|
-
root.add(nose);
|
|
286
|
-
addPartBox(root, "Canopy", .92, .58, 2.05, 0, 1.42, 1.35, glassMat);
|
|
287
|
-
addPartBox(root, "DorsalSpine", .48, .36, 2.9, 0, 1.44, -1.45, trimMat);
|
|
288
|
-
for (const [tag, sx] of [["L", 1], ["R", -1]]) {
|
|
289
|
-
const wing = addPartBox(root, `Wing_${tag}`, 2.95, .14, 2.6, sx * 2.15, .78, -.85, hullMat);
|
|
290
|
-
wing.rotation.y = sx * -.22;
|
|
291
|
-
const fin = addPartBox(root, `TailFin_${tag}`, .12, 1.15, 1.35, sx * .68, 1.65, -2.25, trimMat);
|
|
292
|
-
fin.rotation.z = sx * -.28;
|
|
293
|
-
const bell = new THREE.Mesh(new THREE.CylinderGeometry(.28, .36, .72, 8), darkMat);
|
|
294
|
-
bell.name = `Nacelle_${tag}`;
|
|
295
|
-
bell.rotation.x = Math.PI * .5;
|
|
296
|
-
bell.position.set(sx * .42, .86, -3.15);
|
|
297
|
-
root.add(bell);
|
|
298
|
-
addPartBox(root, `WingCore_${tag}`, .16, .16, .95, sx * 3.55, .78, -.65, glowMat);
|
|
299
|
-
addPartBox(root, `Skid_${tag}`, .14, .42, 1.8, sx * .58, .21, .1, darkMat);
|
|
300
|
-
addKolmoSocket(root, `Socket_Thruster_${tag}`, [
|
|
301
|
-
sx * .42,
|
|
302
|
-
.86,
|
|
303
|
-
-3.52
|
|
304
|
-
], "mount", {
|
|
305
|
-
kind: "plume",
|
|
306
|
-
drive: "throttle",
|
|
307
|
-
size: 1.15
|
|
308
|
-
});
|
|
309
|
-
addKolmoSocket(root, `Socket_Muzzle_${tag}`, [
|
|
310
|
-
sx * 3.55,
|
|
311
|
-
.78,
|
|
312
|
-
-.1
|
|
313
|
-
], "muzzle", {
|
|
314
|
-
kind: "flare",
|
|
315
|
-
drive: "fire",
|
|
316
|
-
size: .7
|
|
317
|
-
}, [
|
|
318
|
-
0,
|
|
319
|
-
Math.PI,
|
|
320
|
-
0
|
|
321
|
-
]);
|
|
322
|
-
}
|
|
323
|
-
addKolmoSocket(root, "Socket_seat_pilot", [
|
|
324
|
-
0,
|
|
325
|
-
.95,
|
|
326
|
-
1.1
|
|
327
|
-
], "seat");
|
|
328
|
-
}
|
|
329
|
-
root.userData = {
|
|
330
|
-
proceduralDomain: "craft",
|
|
331
|
-
proceduralRecipeId: id
|
|
332
|
-
};
|
|
333
|
-
return root;
|
|
334
|
-
}
|
|
335
|
-
function buildProceduralDomainScene(domain, recipeId) {
|
|
336
|
-
switch (domain) {
|
|
337
|
-
case "c12": return buildProceduralC12Scene(recipeId);
|
|
338
|
-
case "craft": return buildProceduralCraftScene(recipeId);
|
|
339
|
-
case "person": return buildProceduralPersonScene(recipeId);
|
|
340
|
-
case "prop": return buildProceduralPropScene(recipeId);
|
|
341
|
-
case "junk": return buildProceduralJunkScene(recipeId);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
export { C12_PROCEDURAL_RECIPES, CRAFT_PROCEDURAL_RECIPES, JUNK_PROCEDURAL_RECIPES, PERSON_PROCEDURAL_RECIPES, PROP_PROCEDURAL_RECIPES, buildProceduralC12Scene, buildProceduralCraftScene, buildProceduralDomainScene, buildProceduralJunkScene, buildProceduralPersonScene, buildProceduralPropScene };
|
|
345
|
-
|
|
346
|
-
//# sourceMappingURL=proceduralDomainBuilders.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proceduralDomainBuilders.js","names":[],"sources":["../../src/importer/proceduralDomainBuilders.ts"],"sourcesContent":["import * as THREE from \"three\";\nimport {\n JUNK_PROCEDURAL_RECIPES,\n buildProceduralJunkScene,\n type JunkProceduralRecipe,\n type JunkProceduralRecipeId,\n} from \"../junk/junkProceduralScenes.js\";\nimport {\n C12_PROCEDURAL_RECIPES,\n addKolmoSocket,\n addPartBox,\n buildProceduralC12Scene,\n makeFlatMat,\n type C12ProceduralRecipeId,\n type ProceduralRecipeSpec,\n} from \"./proceduralC12AndCraft.js\";\nimport {\n PERSON_PROCEDURAL_RECIPES,\n PROP_PROCEDURAL_RECIPES,\n buildProceduralPersonScene,\n buildProceduralPropScene,\n type PersonProceduralRecipeId,\n type PropProceduralRecipeId,\n} from \"./proceduralPersonAndProp.js\";\n\nexport type CraftProceduralRecipeId =\n | \"starfighter_delta\"\n | \"vtol_dropship\"\n | \"hover_skiff\"\n | \"orbital_lander\";\n\nexport const CRAFT_PROCEDURAL_RECIPES: readonly ProceduralRecipeSpec<CraftProceduralRecipeId>[] = Object.freeze([\n { id: \"starfighter_delta\", label: \"Starfighter Delta\", domain: \"craft\", targetMeters: 8.4, massKg: 1450, powerOrThrust: 24000, color: \"#38bdf8\" },\n { id: \"vtol_dropship\", label: \"VTOL Dropship\", domain: \"craft\", targetMeters: 9.6, massKg: 3200, powerOrThrust: 46000, color: \"#10b981\" },\n { id: \"hover_skiff\", label: \"Hover Skiff\", domain: \"craft\", targetMeters: 5.4, massKg: 620, powerOrThrust: 9800, color: \"#f59e0b\" },\n { id: \"orbital_lander\", label: \"Orbital Lander\", domain: \"craft\", targetMeters: 6.2, massKg: 2800, powerOrThrust: 38000, color: \"#eab308\" },\n]);\n\nexport function buildProceduralCraftScene(recipeOrId: CraftProceduralRecipeId | ProceduralRecipeSpec | string = \"starfighter_delta\"): THREE.Group {\n const id = (typeof recipeOrId === \"string\" ? recipeOrId : recipeOrId.id) as CraftProceduralRecipeId;\n const root = new THREE.Group();\n root.name = id;\n const glassMat = new THREE.MeshStandardMaterial({ color: \"#7dd3fc\", transparent: true, opacity: 0.42, roughness: 0.1, flatShading: true });\n const darkMat = makeFlatMat(\"#1e293b\", 0.6, 0.35);\n const glowMat = makeFlatMat(\"#22d3ee\", 0.25, 0.1, \"#06b6d4\");\n\n if (id === \"vtol_dropship\") {\n const hullMat = makeFlatMat(\"#10b981\", 0.48, 0.24), accentMat = makeFlatMat(\"#f59e0b\", 0.45, 0.25);\n addPartBox(root, \"Fuselage\", 2.2, 1.55, 6.2, 0, 1.15, -0.2, hullMat);\n const nose = new THREE.Mesh(new THREE.ConeGeometry(0.86, 2.4, 6), hullMat);\n nose.name = \"Nosecone\"; nose.rotation.x = Math.PI * 0.5; nose.position.set(0, 1.04, 4.0); root.add(nose);\n addPartBox(root, \"Canopy\", 1.35, 0.72, 2.1, 0, 1.62, 2.4, glassMat);\n addPartBox(root, \"TailBoom\", 0.9, 0.75, 2.8, 0, 1.65, -4.4, hullMat);\n addPartBox(root, \"TailFin\", 0.22, 1.35, 1.4, 0, 2.55, -5.1, accentMat);\n for (const [tag, sx] of [[\"L\", 1], [\"R\", -1]] as const) {\n addPartBox(root, `Wing_${tag}`, 2.6, 0.24, 1.6, sx * 2.3, 1.72, 0.2, hullMat);\n addPartBox(root, `Skid_${tag}`, 0.18, 0.38, 4.2, sx * 0.92, 0.19, 0.2, darkMat);\n for (const [zTag, pz] of [[\"F\", 1.4], [\"R\", -2.2]] as const) {\n const nx = sx * (zTag === \"F\" ? 3.5 : 2.1);\n const nac = new THREE.Mesh(new THREE.CylinderGeometry(0.36, 0.44, 1.1, 8), darkMat);\n nac.name = `Nacelle_${zTag}${tag}`; nac.position.set(nx, 1.55, pz); root.add(nac);\n addKolmoSocket(root, `Socket_Thruster_${zTag}${tag}`, [nx, 0.95, pz], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 1.1 }, [-Math.PI * 0.5, 0, 0]);\n }\n }\n addKolmoSocket(root, \"Socket_Thruster_Aft\", [0, 1.55, -5.85], \"mount\", { kind: \"plume\", drive: \"boost\", size: 1.3 });\n addKolmoSocket(root, \"Socket_Muzzle_Chin\", [0, 0.55, 5.1], \"muzzle\", { kind: \"flare\", drive: \"fire\", size: 0.8 }, [0, Math.PI, 0]);\n addKolmoSocket(root, \"Socket_seat_pilot\", [0, 1.15, 2.2], \"seat\");\n } else if (id === \"hover_skiff\") {\n const hullMat = makeFlatMat(\"#f59e0b\", 0.44, 0.22);\n addPartBox(root, \"SkiffDeck\", 1.55, 0.46, 4.2, 0, 0.48, 0, hullMat);\n const nose = new THREE.Mesh(new THREE.ConeGeometry(0.52, 1.5, 5), hullMat);\n nose.name = \"Nosecone\"; nose.rotation.x = Math.PI * 0.5; nose.position.set(0, 0.56, 2.8); root.add(nose);\n addPartBox(root, \"CanopyWindscreen\", 1.1, 0.48, 0.65, 0, 0.92, 0.95, glassMat);\n addPartBox(root, \"PilotSeat\", 0.56, 0.52, 0.52, 0, 0.88, -0.15, darkMat);\n for (const [tag, sx] of [[\"L\", 1], [\"R\", -1]] as const) {\n addPartBox(root, `Pontoon_${tag}`, 0.42, 0.34, 3.6, sx * 1.12, 0.36, 0.1, darkMat);\n addPartBox(root, `Skid_${tag}`, 0.12, 0.18, 2.8, sx * 0.72, 0.09, 0, darkMat);\n const duct = new THREE.Mesh(new THREE.CylinderGeometry(0.34, 0.38, 0.75, 8), darkMat);\n duct.name = `Nacelle_${tag}`; duct.rotation.x = Math.PI * 0.5; duct.position.set(sx * 0.52, 0.85, -2.05); root.add(duct);\n addKolmoSocket(root, `Socket_Thruster_${tag}`, [sx * 0.52, 0.85, -2.45], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 0.9 });\n }\n addKolmoSocket(root, \"Socket_Thruster_Lift\", [0, 0.22, 0], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 0.8 }, [-Math.PI * 0.5, 0, 0]);\n addKolmoSocket(root, \"Socket_Muzzle_Bow\", [0, 0.52, 3.55], \"muzzle\", { kind: \"flare\", drive: \"fire\", size: 0.65 }, [0, Math.PI, 0]);\n addKolmoSocket(root, \"Socket_seat_pilot\", [0, 0.82, -0.15], \"seat\");\n } else if (id === \"orbital_lander\") {\n const goldMat = makeFlatMat(\"#eab308\", 0.34, 0.68), cabinMat = makeFlatMat(\"#e2e8f0\", 0.45, 0.22);\n const desc = new THREE.Mesh(new THREE.CylinderGeometry(1.75, 1.85, 1.05, 8), goldMat);\n desc.name = \"DescentStage\"; desc.position.y = 1.35; root.add(desc);\n const asc = new THREE.Mesh(new THREE.CylinderGeometry(1.25, 1.45, 1.45, 8), cabinMat);\n asc.name = \"AscentCabin\"; asc.position.y = 2.62; root.add(asc);\n addPartBox(root, \"CanopyCupola\", 1.1, 0.62, 0.72, 0, 2.75, 1.18, glassMat);\n const bell = new THREE.Mesh(new THREE.ConeGeometry(0.58, 0.72, 10, 1, true), darkMat);\n bell.name = \"DescentBell\"; bell.position.y = 0.62; root.add(bell);\n for (const [tag, sx, sz] of [[\"FL\", 1, 1], [\"FR\", -1, 1], [\"RL\", 1, -1], [\"RR\", -1, -1]] as const) {\n const pad = new THREE.Mesh(new THREE.CylinderGeometry(0.34, 0.4, 0.08, 8), goldMat);\n pad.name = `Footpad_${tag}`; pad.position.set(sx * 2.1, 0.04, sz * 2.1); root.add(pad);\n const strut = addPartBox(root, `LandingStrut_${tag}`, 0.12, 1.32, 0.12, sx * 1.72, 0.74, sz * 1.72, darkMat);\n strut.rotation.set(sz * 0.4, 0, -sx * 0.4);\n }\n addKolmoSocket(root, \"Socket_Thruster_Descent\", [0, 0.26, 0], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 1.35 }, [-Math.PI * 0.5, 0, 0]);\n addKolmoSocket(root, \"Socket_Thruster_RCS_L\", [1.55, 2.8, 0], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 0.55 }, [-Math.PI * 0.5, 0, 0]);\n addKolmoSocket(root, \"Socket_Thruster_RCS_R\", [-1.55, 2.8, 0], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 0.55 }, [-Math.PI * 0.5, 0, 0]);\n addKolmoSocket(root, \"Socket_Muzzle_Probe\", [0, 2.1, 1.75], \"muzzle\", { kind: \"flare\", drive: \"fire\", size: 0.6 }, [0, Math.PI, 0]);\n addKolmoSocket(root, \"Socket_seat_pilot\", [0, 2.45, 0.45], \"seat\");\n } else {\n const hullMat = makeFlatMat(\"#e2e8f0\", 0.42, 0.24), trimMat = makeFlatMat(\"#0284c7\", 0.44, 0.26);\n addPartBox(root, \"Fuselage\", 1.45, 0.95, 5.2, 0, 0.88, -0.3, hullMat);\n const nose = new THREE.Mesh(new THREE.ConeGeometry(0.68, 3.1, 6), trimMat);\n nose.name = \"Nosecone\"; nose.rotation.x = Math.PI * 0.5; nose.position.set(0, 0.84, 3.8); root.add(nose);\n addPartBox(root, \"Canopy\", 0.92, 0.58, 2.05, 0, 1.42, 1.35, glassMat);\n addPartBox(root, \"DorsalSpine\", 0.48, 0.36, 2.9, 0, 1.44, -1.45, trimMat);\n for (const [tag, sx] of [[\"L\", 1], [\"R\", -1]] as const) {\n const wing = addPartBox(root, `Wing_${tag}`, 2.95, 0.14, 2.6, sx * 2.15, 0.78, -0.85, hullMat);\n wing.rotation.y = sx * -0.22;\n const fin = addPartBox(root, `TailFin_${tag}`, 0.12, 1.15, 1.35, sx * 0.68, 1.65, -2.25, trimMat);\n fin.rotation.z = sx * -0.28;\n const bell = new THREE.Mesh(new THREE.CylinderGeometry(0.28, 0.36, 0.72, 8), darkMat);\n bell.name = `Nacelle_${tag}`; bell.rotation.x = Math.PI * 0.5; bell.position.set(sx * 0.42, 0.86, -3.15); root.add(bell);\n addPartBox(root, `WingCore_${tag}`, 0.16, 0.16, 0.95, sx * 3.55, 0.78, -0.65, glowMat);\n addPartBox(root, `Skid_${tag}`, 0.14, 0.42, 1.8, sx * 0.58, 0.21, 0.1, darkMat);\n addKolmoSocket(root, `Socket_Thruster_${tag}`, [sx * 0.42, 0.86, -3.52], \"mount\", { kind: \"plume\", drive: \"throttle\", size: 1.15 });\n addKolmoSocket(root, `Socket_Muzzle_${tag}`, [sx * 3.55, 0.78, -0.1], \"muzzle\", { kind: \"flare\", drive: \"fire\", size: 0.7 }, [0, Math.PI, 0]);\n }\n addKolmoSocket(root, \"Socket_seat_pilot\", [0, 0.95, 1.1], \"seat\");\n }\n\n root.userData = { proceduralDomain: \"craft\", proceduralRecipeId: id };\n return root;\n}\n\nexport type ProceduralBuilderDomain = \"c12\" | \"craft\" | \"person\" | \"prop\" | \"junk\";\n\nexport function buildProceduralDomainScene(domain: ProceduralBuilderDomain, recipeId?: string): THREE.Group {\n switch (domain) {\n case \"c12\": return buildProceduralC12Scene(recipeId);\n case \"craft\": return buildProceduralCraftScene(recipeId);\n case \"person\": return buildProceduralPersonScene(recipeId);\n case \"prop\": return buildProceduralPropScene(recipeId);\n case \"junk\": return buildProceduralJunkScene(recipeId);\n }\n}\n\nexport {\n C12_PROCEDURAL_RECIPES,\n JUNK_PROCEDURAL_RECIPES,\n PERSON_PROCEDURAL_RECIPES,\n PROP_PROCEDURAL_RECIPES,\n buildProceduralC12Scene,\n buildProceduralJunkScene,\n buildProceduralPersonScene,\n buildProceduralPropScene,\n type C12ProceduralRecipeId,\n type JunkProceduralRecipe,\n type JunkProceduralRecipeId,\n type PersonProceduralRecipeId,\n type PropProceduralRecipeId,\n type ProceduralRecipeSpec,\n};\n"],"mappings":";;;;;AA+BA,IAAa,2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S,oBAAoB;CAAG;CACpE,OAAO;AACX;AAIA,SAAgB,2BAA2B,QAAiC,UAAgC;CACxG,QAAQ,QAAR;EACI,KAAK,OAAO,OAAO,wBAAwB,QAAQ;EACnD,KAAK,SAAS,OAAO,0BAA0B,QAAQ;EACvD,KAAK,UAAU,OAAO,2BAA2B,QAAQ;EACzD,KAAK,QAAQ,OAAO,yBAAyB,QAAQ;EACrD,KAAK,QAAQ,OAAO,yBAAyB,QAAQ;CACzD;AACJ"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import { type ProceduralRecipeSpec } from "./proceduralC12AndCraft.js";
|
|
3
|
-
export type PersonProceduralRecipeId = "astronaut_eva" | "street_runner" | "mech_pilot" | "bandit_raider";
|
|
4
|
-
export type PropProceduralRecipeId = "arcade_cabinet" | "vending_machine" | "fuel_pump" | "holo_terminal" | "supply_locker";
|
|
5
|
-
export declare const PERSON_PROCEDURAL_RECIPES: readonly ProceduralRecipeSpec<PersonProceduralRecipeId>[];
|
|
6
|
-
export declare const PROP_PROCEDURAL_RECIPES: readonly ProceduralRecipeSpec<PropProceduralRecipeId>[];
|
|
7
|
-
export declare function buildProceduralPersonScene(recipeOrId?: PersonProceduralRecipeId | ProceduralRecipeSpec | string): THREE.Group;
|
|
8
|
-
export declare function buildProceduralPropScene(recipeOrId?: PropProceduralRecipeId | ProceduralRecipeSpec | string): THREE.Group;
|