@pinkaphant/kolmo 0.4.6 → 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 -100
- package/dist/engine/actor.d.ts +13 -0
- package/dist/engine/gltfLoader.d.ts +19 -0
- package/dist/engine/index.d.ts +8 -13
- package/dist/engine/index.js +1270 -22
- 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 -104
- package/dist/physics/index.d.ts +4 -1
- package/dist/physics/index.js +1 -105
- package/dist/physics/nBodyGravity.d.ts +42 -0
- package/dist/physics-FhWvTBfH.js +424 -0
- package/dist/physics-FhWvTBfH.js.map +1 -0
- package/dist/vite/index.d.ts +2 -12
- package/dist/vite/index.js +8 -77
- package/dist/vite/index.js.map +1 -1
- package/package.json +33 -87
- package/AGENTS.md +0 -29
- package/CLAUDE.md +0 -8
- package/bin/kolmo.mjs +0 -560
- 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 -13
- package/dist/engine/kolmoActor.js +0 -263
- 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/kolmoFloatingOrigin.d.ts +0 -17
- package/dist/engine/kolmoFloatingOrigin.js +0 -98
- 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/kolmoHud.d.ts +0 -23
- package/dist/engine/kolmoHud.js +0 -214
- package/dist/engine/kolmoHud.js.map +0 -1
- package/dist/engine/kolmoInput.js +0 -163
- 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 -160
- package/dist/engine/kolmoLongDrive.js.map +0 -1
- package/dist/engine/kolmoPilotMesh.d.ts +0 -2
- package/dist/engine/kolmoPilotMesh.js +0 -205
- 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 -10
- package/dist/engine/kolmoVehicleAutoCompile.js +0 -78
- 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 -38
- package/dist/engine/kolmoVehicleDriver.js +0 -139
- package/dist/engine/kolmoVehicleDriver.js.map +0 -1
- package/dist/engine/kolmoVehicleInner.d.ts +0 -7
- package/dist/engine/kolmoVehicleInner.js +0 -291
- package/dist/engine/kolmoVehicleInner.js.map +0 -1
- package/dist/engine/kolmoWorld.d.ts +0 -45
- package/dist/engine/kolmoWorld.js +0 -161
- 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 -23
- package/dist/importer/DomainWorkshopPanel.js +0 -418
- 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 -291
- package/dist/importer/GlbImportGate.js.map +0 -1
- package/dist/importer/ImperativeVehicleRig.d.ts +0 -9
- package/dist/importer/ImperativeVehicleRig.js +0 -273
- package/dist/importer/ImperativeVehicleRig.js.map +0 -1
- package/dist/importer/LiveDrivePads.d.ts +0 -20
- package/dist/importer/LiveDrivePads.js +0 -171
- 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/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 -49
- package/dist/importer/importerWebMcp.js +0 -48
- package/dist/importer/importerWebMcp.js.map +0 -1
- package/dist/importer/importerWebMcpTools.d.ts +0 -2
- package/dist/importer/importerWebMcpTools.js +0 -341
- package/dist/importer/importerWebMcpTools.js.map +0 -1
- package/dist/importer/index.d.ts +0 -23
- package/dist/importer/index.js +0 -36
- package/dist/importer/index.js.map +0 -1
- package/dist/importer/khrCarGeometryMass.d.ts +0 -20
- package/dist/importer/khrCarGeometryMass.js +0 -125
- 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 -283
- 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 -108
- package/dist/importer/useChopShopController.js +0 -201
- 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/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 -13
- package/dist/junk/index.js +0 -12
- 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/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/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 -148
- package/skills/kolmo-engine/SKILL.md +0 -111
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinkaphant/kolmo",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Thin React Three Fiber + Rapier WASM + @pinkaphant/ecctrl + @khr3/core + Koota ECA game layer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
|
-
"bin": {
|
|
9
|
-
"kolmo": "./bin/kolmo.mjs"
|
|
10
|
-
},
|
|
11
8
|
"main": "./dist/index.js",
|
|
12
9
|
"types": "./dist/index.d.ts",
|
|
13
10
|
"exports": {
|
|
@@ -19,6 +16,10 @@
|
|
|
19
16
|
"types": "./dist/index.d.ts",
|
|
20
17
|
"import": "./dist/index.js"
|
|
21
18
|
},
|
|
19
|
+
"./engine": {
|
|
20
|
+
"types": "./dist/engine/index.d.ts",
|
|
21
|
+
"import": "./dist/engine/index.js"
|
|
22
|
+
},
|
|
22
23
|
"./physics": {
|
|
23
24
|
"types": "./dist/physics/index.d.ts",
|
|
24
25
|
"import": "./dist/physics/index.js"
|
|
@@ -27,126 +28,71 @@
|
|
|
27
28
|
"types": "./dist/vite/index.d.ts",
|
|
28
29
|
"import": "./dist/vite/index.js"
|
|
29
30
|
},
|
|
30
|
-
"./shaders": {
|
|
31
|
-
"types": "./dist/shaders/index.d.ts",
|
|
32
|
-
"import": "./dist/shaders/index.js"
|
|
33
|
-
},
|
|
34
|
-
"./shaders/tsl": {
|
|
35
|
-
"types": "./dist/shaders/tsl.d.ts",
|
|
36
|
-
"import": "./dist/shaders/tsl.js"
|
|
37
|
-
},
|
|
38
|
-
"./world": {
|
|
39
|
-
"types": "./dist/world/index.d.ts",
|
|
40
|
-
"import": "./dist/world/index.js"
|
|
41
|
-
},
|
|
42
|
-
"./engine": {
|
|
43
|
-
"types": "./dist/engine/index.d.ts",
|
|
44
|
-
"import": "./dist/engine/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./importer": {
|
|
47
|
-
"types": "./dist/importer/index.d.ts",
|
|
48
|
-
"import": "./dist/importer/index.js"
|
|
49
|
-
},
|
|
50
|
-
"./junk": {
|
|
51
|
-
"types": "./dist/junk/index.d.ts",
|
|
52
|
-
"import": "./dist/junk/index.js"
|
|
53
|
-
},
|
|
54
|
-
"./suika": {
|
|
55
|
-
"types": "./dist/suika/index.d.ts",
|
|
56
|
-
"import": "./dist/suika/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./sand3d": {
|
|
59
|
-
"types": "./dist/sand3d/index.d.ts",
|
|
60
|
-
"import": "./dist/sand3d/index.js"
|
|
61
|
-
},
|
|
62
|
-
"./schema": {
|
|
63
|
-
"types": "./dist/schema/kolmoSchema.d.ts",
|
|
64
|
-
"import": "./dist/schema/kolmoSchema.js"
|
|
65
|
-
},
|
|
66
31
|
"./package.json": "./package.json"
|
|
67
32
|
},
|
|
68
33
|
"files": [
|
|
69
34
|
"dist",
|
|
70
|
-
"docs",
|
|
71
|
-
"skills",
|
|
72
|
-
"AGENTS.md",
|
|
73
|
-
"bin",
|
|
74
35
|
"LICENSE",
|
|
75
|
-
"README.md"
|
|
76
|
-
"CLAUDE.md"
|
|
36
|
+
"README.md"
|
|
77
37
|
],
|
|
78
38
|
"publishConfig": {
|
|
79
39
|
"access": "public"
|
|
80
40
|
},
|
|
81
41
|
"scripts": {
|
|
82
42
|
"dev": "vite",
|
|
83
|
-
"
|
|
84
|
-
"typecheck": "tsc --noEmit && tsc -p tests/e2e/tsconfig.json --noEmit",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
85
44
|
"test": "node --import tsx --test \"src/**/*.test.ts*\"",
|
|
86
|
-
"build": "
|
|
87
|
-
"
|
|
88
|
-
"prepack": "npm run build:lib >&2",
|
|
45
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
46
|
+
"prepack": "npm run build >&2",
|
|
89
47
|
"pack:dry": "npm pack --dry-run"
|
|
90
48
|
},
|
|
91
|
-
"dependencies": {
|
|
92
|
-
"@khr3/assets": "^0.2.8",
|
|
93
|
-
"@khr3/c12": "^0.3.8",
|
|
94
|
-
"@khr3/core": "^0.2.7",
|
|
95
|
-
"@khr3/launchers": "^0.2.8",
|
|
96
|
-
"@khr3/vehicles": "^0.2.4"
|
|
97
|
-
},
|
|
98
|
-
"overrides": {
|
|
99
|
-
"@dimforge/rapier3d-compat": "0.19.2",
|
|
100
|
-
"@pinkaphant/ecctrl": "2.0.4-beta.4"
|
|
101
|
-
},
|
|
102
49
|
"peerDependencies": {
|
|
103
50
|
"@dimforge/rapier3d-compat": "0.19.2",
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
51
|
+
"@khr3/c12": ">=0.3.8",
|
|
52
|
+
"@khr3/core": ">=0.2.7",
|
|
53
|
+
"@pinkaphant/ecctrl": "2.0.4-beta.5",
|
|
54
|
+
"@react-three/drei": "^10.0.0",
|
|
106
55
|
"@react-three/fiber": "^9.0.0",
|
|
107
56
|
"@react-three/rapier": "^2.2.0",
|
|
108
|
-
"koota": "^0.6.
|
|
57
|
+
"koota": "^0.6.6",
|
|
58
|
+
"maath": "^0.10.8",
|
|
109
59
|
"react": "^19.0.0",
|
|
110
60
|
"react-dom": "^19.0.0",
|
|
111
|
-
"three": "
|
|
61
|
+
"three": "0.184.0",
|
|
112
62
|
"zustand": "^5.0.0"
|
|
113
63
|
},
|
|
64
|
+
"peerDependenciesMeta": {
|
|
65
|
+
"@khr3/c12": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"react-dom": {
|
|
69
|
+
"optional": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
114
72
|
"devDependencies": {
|
|
115
73
|
"@dimforge/rapier3d-compat": "0.19.2",
|
|
116
|
-
"@
|
|
74
|
+
"@khr3/c12": "^0.3.9",
|
|
75
|
+
"@khr3/core": "^0.2.9",
|
|
76
|
+
"@pinkaphant/ecctrl": "2.0.4-beta.5",
|
|
117
77
|
"@react-three/drei": "^10.7.7",
|
|
118
78
|
"@react-three/fiber": "^9.6.1",
|
|
119
79
|
"@react-three/rapier": "^2.2.0",
|
|
120
80
|
"@types/node": "^22.20.5",
|
|
121
81
|
"@types/react": "^19.2.16",
|
|
122
82
|
"@types/react-dom": "^19.2.3",
|
|
123
|
-
"@types/three": "
|
|
124
|
-
"
|
|
125
|
-
"
|
|
83
|
+
"@types/three": "0.184.0",
|
|
84
|
+
"koota": "^0.6.6",
|
|
85
|
+
"maath": "^0.10.8",
|
|
126
86
|
"react": "^19.2.7",
|
|
127
87
|
"react-dom": "^19.2.7",
|
|
128
|
-
"three": "
|
|
88
|
+
"three": "0.184.0",
|
|
129
89
|
"tsx": "^4.23.15",
|
|
130
90
|
"typescript": "^6.0.3",
|
|
131
91
|
"vite": "^8.3.8",
|
|
132
|
-
"
|
|
133
|
-
"zustand": "^5.0.14"
|
|
92
|
+
"zustand": "^5.1.0"
|
|
134
93
|
},
|
|
135
|
-
"keywords": [
|
|
136
|
-
"threejs",
|
|
137
|
-
"react-three-fiber",
|
|
138
|
-
"rapier",
|
|
139
|
-
"ecctrl",
|
|
140
|
-
"khr3",
|
|
141
|
-
"retro",
|
|
142
|
-
"game-engine"
|
|
143
|
-
],
|
|
144
94
|
"repository": {
|
|
145
95
|
"type": "git",
|
|
146
96
|
"url": "git+https://github.com/pinkAphant/Kolmo.git"
|
|
147
|
-
},
|
|
148
|
-
"homepage": "https://github.com/pinkAphant/kolmo#readme",
|
|
149
|
-
"bugs": {
|
|
150
|
-
"url": "https://github.com/pinkAphant/kolmo/issues"
|
|
151
97
|
}
|
|
152
98
|
}
|
package/AGENTS.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# `@pinkaphant/kolmo` — Agent & Contributor Guide
|
|
2
|
-
|
|
3
|
-
`Kolmo` is a Kolmogorov-complexity 3D game engine where humans and AI agents share agency at every step — from `npx @pinkaphant/kolmo create` templates to declarative `<Game>` entities (`<Vehicle>`, `<Actor>`, `<Island>`, `<LongDrive>`, `<Sand3D>`, `<Junk>`, `<SuikaSystem>`) and live in-browser `navigator.modelContext` WebMCP tools (`useImporterWebMcp`).
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. Shared Human + AI Agency Workflow
|
|
8
|
-
|
|
9
|
-
1. **Scaffold in One Command**: Run `npx @pinkaphant/kolmo create <dir> --template game|longline|dust|garage` ([bin/kolmo.mjs](./bin/kolmo.mjs)) to generate a runnable Vite 8 + TypeScript + Cloudflare Worker (`wrangler.jsonc`) app with pinned physics overrides.
|
|
10
|
-
2. **Compose Self-Contained Entities**: Drop `<Vehicle>`, `<Actor>`, `<Island>`, `<LongDrive>`, `<Sand3D>`, `<Junk>`, `<SuikaSystem>`, `<Hud>`, and `<MobileTouchOverlay />` inside `<Game>` ([src/engine/kolmoGame.tsx](./src/engine/kolmoGame.tsx)). Each entity registers its own Koota ECS traits, Rapier colliders/joints, `KOLMO_emitter` VFX plumes, and `0.08`-deadzone touch bindings automatically.
|
|
11
|
-
3. **Co-Author Assets via WebMCP & Import Gate**: Mount `<GlbImportGate />` ([src/importer/GlbImportGate.tsx](./src/importer/GlbImportGate.tsx)) to calibrate `.glb`, `.gltf`, OpenUSD (`.usd*`), or `.sand3d` Code-CAD scripts across 8 domains (`vehicle | c12 | launcher | person | prop | junk | suika | sand3d`). Browser-connected AI agents inspect and drive the exact same workbench through the 12 tools in [src/importer/importerWebMcpTools.ts](./src/importer/importerWebMcpTools.ts) (`importer_state`, `importer_capture_view`, `importer_load`, `importer_orient`, `importer_scale`, `importer_set_kind`, `importer_pop_wheels`, `importer_cut_part`, `importer_set_points`, `importer_export`).
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 2. Core Technical Architecture
|
|
16
|
-
|
|
17
|
-
- **Pinned Stack**: `"@pinkaphant/ecctrl": "2.0.4-beta.4"`, `"@dimforge/rapier3d-compat": "0.19.2"`, `"three": "0.184.0"`, `"@react-three/fiber": "^9.6.1"`, `"@react-three/rapier": "^2.2.0"`, `"koota": "^0.6.5"`, bundled via `@pinkaphant/kolmo/vite` (`externalizeRapierWasm()`, `KOLMO_SINGLETON_DEDUPE`, `KOLMO_ROLLDOWN_BUILD`).
|
|
18
|
-
- **Imperative R3F Loop (`useRef` + `useFrame`)**: Step Rapier inside `<KolmoPhysics>` (`<Physics paused timeStep="vary">` + `<TimeControl maxDelta={1 / 30}>`), reading `rapierWorld.timestep` and transient store state (`useGateStore.getState()`) with module-scoped scratch vectors. Drive `<KolmoHud>` and `<MobileTouchOverlay>` at 60 Hz through DOM `ref.current` mutations.
|
|
19
|
-
- **Koota SoA ECS**: Mutate `TransformTrait`, `VelocityTrait`, and `VehicleTelemetryTrait` in place via `.updateEach(..., { changeDetection: "never" })` or `writeEntityKinematics` / `writeVehicleTelemetry` ([src/engine/kolmoTraits.ts](./src/engine/kolmoTraits.ts)), and link actors to vehicles with `PilotLink = relation({ exclusive: true })`.
|
|
20
|
-
- **Real Vehicle & C12 Physics**: Compile Fritsch–Carlson monotone Pacejka tire LUTs (`@khr3/core/curves`), SI corner-load suspension (`solveWheelLoads` on `@pinkaphant/ecctrl@2.0.4-beta.4`), volume-weighted chassis inertia (`deriveChassisGeometryPlan`), cylindrical boolean wheel coring (`sliceCarWheelCylinders`), and exact `Z[1/2, sqrt(3)]` 3.0 m `C12` modular batches (`@khr3/c12`).
|
|
21
|
-
- **Co-op Room Multiplayer**: Pair Koota entity traits (`TransformTrait`, `VelocityTrait`, `PilotLink`) with Cloudflare Durable Objects WebSocket Hibernation (`partyserver` `static options = { hibernate: true }` + `partysocket` + `serializeAttachment`) for 1–8 player room-code co-op sessions.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## 3. Commands & Module Hygiene
|
|
26
|
-
|
|
27
|
-
- Keep every `.ts` / `.tsx` source module focused (`<= 250` lines) with calm Title/Sentence UI copy, `100dvh`, `env(safe-area-inset-*)`, and `>= 44x44 px` touch targets.
|
|
28
|
-
- Run `npm run typecheck`, `npm test`, and `npm run build` (plus `npx vite build` for the interactive `dist-example/` home page) with exit code `0`.
|
|
29
|
-
- Full subpath signatures live in [README.md](./README.md), [docs/api-reference.md](./docs/api-reference.md), and the portable agent skill [skills/kolmo-engine/SKILL.md](./skills/kolmo-engine/SKILL.md).
|
package/CLAUDE.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
@AGENTS.md
|
|
2
|
-
|
|
3
|
-
# `@pinkaphant/kolmo` — Claude Code Guide
|
|
4
|
-
|
|
5
|
-
Follow [AGENTS.md](./AGENTS.md), [README.md](./README.md), [docs/api-reference.md](./docs/api-reference.md), and [skills/kolmo-engine/SKILL.md](./skills/kolmo-engine/SKILL.md):
|
|
6
|
-
- Pin `"@pinkaphant/ecctrl": "2.0.4-beta.4"`, `"@dimforge/rapier3d-compat": "0.19.2"`, and `"three": "0.184.0"`.
|
|
7
|
-
- Compose `<Game>`, `<Vehicle>`, `<Actor>`, `<Island>`, `<LongDrive>`, `<Sand3D>`, `<Junk>`, `<SuikaSystem>`, `<Hud>`, `<MobileTouchOverlay />`, and `<GlbImportGate enableWebMcp />` with Koota SoA traits (`{ changeDetection: "never" }`) and `<= 250`-line modules.
|
|
8
|
-
- Verify with `npm run typecheck && npm test && npm run build`.
|