@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,377 +0,0 @@
|
|
|
1
|
-
import { applyRetroMaterial } from "../shaders/retroShader.js";
|
|
2
|
-
import { useLayoutEffect, useMemo } from "react";
|
|
3
|
-
import * as THREE from "three";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
// src/engine/kolmoPilotMesh.tsx
|
|
6
|
-
function usePilotResources() {
|
|
7
|
-
const res = useMemo(() => {
|
|
8
|
-
return {
|
|
9
|
-
limbGeo: new THREE.CylinderGeometry(.068, .056, .34, 8),
|
|
10
|
-
legGeo: new THREE.CylinderGeometry(.082, .068, .38, 8),
|
|
11
|
-
bootGeo: new THREE.BoxGeometry(.14, .1, .22),
|
|
12
|
-
torsoGeo: new THREE.BoxGeometry(.36, .38, .22),
|
|
13
|
-
hipGeo: new THREE.BoxGeometry(.3, .13, .19),
|
|
14
|
-
shoulderGeo: new THREE.BoxGeometry(.13, .1, .16),
|
|
15
|
-
helmGeo: new THREE.CylinderGeometry(.135, .145, .22, 8),
|
|
16
|
-
visorGeo: new THREE.BoxGeometry(.21, .085, .06),
|
|
17
|
-
packGeo: new THREE.BoxGeometry(.24, .3, .12),
|
|
18
|
-
suitMat: applyRetroMaterial(new THREE.MeshStandardMaterial({
|
|
19
|
-
color: "#cbd5e1",
|
|
20
|
-
roughness: .62,
|
|
21
|
-
metalness: .12,
|
|
22
|
-
flatShading: true
|
|
23
|
-
}), { flatShading: true }),
|
|
24
|
-
trimMat: applyRetroMaterial(new THREE.MeshStandardMaterial({
|
|
25
|
-
color: "#334155",
|
|
26
|
-
roughness: .72,
|
|
27
|
-
metalness: .2,
|
|
28
|
-
flatShading: true
|
|
29
|
-
}), { flatShading: true }),
|
|
30
|
-
visorMat: applyRetroMaterial(new THREE.MeshStandardMaterial({
|
|
31
|
-
color: "#38bdf8",
|
|
32
|
-
emissive: "#0284c7",
|
|
33
|
-
emissiveIntensity: .55,
|
|
34
|
-
roughness: .22
|
|
35
|
-
})),
|
|
36
|
-
bootMat: applyRetroMaterial(new THREE.MeshStandardMaterial({
|
|
37
|
-
color: "#1e293b",
|
|
38
|
-
roughness: .8,
|
|
39
|
-
flatShading: true
|
|
40
|
-
}), { flatShading: true })
|
|
41
|
-
};
|
|
42
|
-
}, []);
|
|
43
|
-
useLayoutEffect(() => () => {
|
|
44
|
-
res.limbGeo.dispose();
|
|
45
|
-
res.legGeo.dispose();
|
|
46
|
-
res.bootGeo.dispose();
|
|
47
|
-
res.torsoGeo.dispose();
|
|
48
|
-
res.hipGeo.dispose();
|
|
49
|
-
res.shoulderGeo.dispose();
|
|
50
|
-
res.helmGeo.dispose();
|
|
51
|
-
res.visorGeo.dispose();
|
|
52
|
-
res.packGeo.dispose();
|
|
53
|
-
res.suitMat.dispose();
|
|
54
|
-
res.trimMat.dispose();
|
|
55
|
-
res.visorMat.dispose();
|
|
56
|
-
res.bootMat.dispose();
|
|
57
|
-
}, [res]);
|
|
58
|
-
return res;
|
|
59
|
-
}
|
|
60
|
-
function DefaultPilotMesh() {
|
|
61
|
-
const res = usePilotResources();
|
|
62
|
-
return /* @__PURE__ */ jsxs("group", {
|
|
63
|
-
name: "KolmoPilotRig",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
66
|
-
position: [
|
|
67
|
-
0,
|
|
68
|
-
.44,
|
|
69
|
-
0
|
|
70
|
-
],
|
|
71
|
-
castShadow: true,
|
|
72
|
-
geometry: res.helmGeo,
|
|
73
|
-
material: res.suitMat
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
76
|
-
position: [
|
|
77
|
-
0,
|
|
78
|
-
.45,
|
|
79
|
-
.125
|
|
80
|
-
],
|
|
81
|
-
geometry: res.visorGeo,
|
|
82
|
-
material: res.visorMat
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
85
|
-
position: [
|
|
86
|
-
0,
|
|
87
|
-
.15,
|
|
88
|
-
0
|
|
89
|
-
],
|
|
90
|
-
castShadow: true,
|
|
91
|
-
geometry: res.torsoGeo,
|
|
92
|
-
material: res.suitMat
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
95
|
-
position: [
|
|
96
|
-
0,
|
|
97
|
-
-.07,
|
|
98
|
-
0
|
|
99
|
-
],
|
|
100
|
-
castShadow: true,
|
|
101
|
-
geometry: res.hipGeo,
|
|
102
|
-
material: res.trimMat
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
105
|
-
position: [
|
|
106
|
-
0,
|
|
107
|
-
.16,
|
|
108
|
-
-.15
|
|
109
|
-
],
|
|
110
|
-
castShadow: true,
|
|
111
|
-
geometry: res.packGeo,
|
|
112
|
-
material: res.trimMat
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
115
|
-
position: [
|
|
116
|
-
-.24,
|
|
117
|
-
.28,
|
|
118
|
-
0
|
|
119
|
-
],
|
|
120
|
-
castShadow: true,
|
|
121
|
-
geometry: res.shoulderGeo,
|
|
122
|
-
material: res.trimMat
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
125
|
-
position: [
|
|
126
|
-
.24,
|
|
127
|
-
.28,
|
|
128
|
-
0
|
|
129
|
-
],
|
|
130
|
-
castShadow: true,
|
|
131
|
-
geometry: res.shoulderGeo,
|
|
132
|
-
material: res.trimMat
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
135
|
-
position: [
|
|
136
|
-
-.25,
|
|
137
|
-
.08,
|
|
138
|
-
.02
|
|
139
|
-
],
|
|
140
|
-
rotation: [
|
|
141
|
-
.1,
|
|
142
|
-
0,
|
|
143
|
-
.08
|
|
144
|
-
],
|
|
145
|
-
castShadow: true,
|
|
146
|
-
geometry: res.limbGeo,
|
|
147
|
-
material: res.suitMat
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
150
|
-
position: [
|
|
151
|
-
.25,
|
|
152
|
-
.08,
|
|
153
|
-
.02
|
|
154
|
-
],
|
|
155
|
-
rotation: [
|
|
156
|
-
.1,
|
|
157
|
-
0,
|
|
158
|
-
-.08
|
|
159
|
-
],
|
|
160
|
-
castShadow: true,
|
|
161
|
-
geometry: res.limbGeo,
|
|
162
|
-
material: res.suitMat
|
|
163
|
-
}),
|
|
164
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
165
|
-
position: [
|
|
166
|
-
-.1,
|
|
167
|
-
-.32,
|
|
168
|
-
0
|
|
169
|
-
],
|
|
170
|
-
castShadow: true,
|
|
171
|
-
geometry: res.legGeo,
|
|
172
|
-
material: res.suitMat
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
175
|
-
position: [
|
|
176
|
-
.1,
|
|
177
|
-
-.32,
|
|
178
|
-
0
|
|
179
|
-
],
|
|
180
|
-
castShadow: true,
|
|
181
|
-
geometry: res.legGeo,
|
|
182
|
-
material: res.suitMat
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
185
|
-
position: [
|
|
186
|
-
-.1,
|
|
187
|
-
-.53,
|
|
188
|
-
.03
|
|
189
|
-
],
|
|
190
|
-
castShadow: true,
|
|
191
|
-
geometry: res.bootGeo,
|
|
192
|
-
material: res.bootMat
|
|
193
|
-
}),
|
|
194
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
195
|
-
position: [
|
|
196
|
-
.1,
|
|
197
|
-
-.53,
|
|
198
|
-
.03
|
|
199
|
-
],
|
|
200
|
-
castShadow: true,
|
|
201
|
-
geometry: res.bootGeo,
|
|
202
|
-
material: res.bootMat
|
|
203
|
-
})
|
|
204
|
-
]
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
function SeatedPilotMesh({ position, visible = true }) {
|
|
208
|
-
const res = usePilotResources();
|
|
209
|
-
return /* @__PURE__ */ jsxs("group", {
|
|
210
|
-
name: "KolmoSeatedPilotRig",
|
|
211
|
-
position: [
|
|
212
|
-
position[0],
|
|
213
|
-
position[1],
|
|
214
|
-
position[2]
|
|
215
|
-
],
|
|
216
|
-
visible,
|
|
217
|
-
children: [
|
|
218
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
219
|
-
position: [
|
|
220
|
-
0,
|
|
221
|
-
.44,
|
|
222
|
-
-.04
|
|
223
|
-
],
|
|
224
|
-
castShadow: true,
|
|
225
|
-
geometry: res.helmGeo,
|
|
226
|
-
material: res.suitMat
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
229
|
-
position: [
|
|
230
|
-
0,
|
|
231
|
-
.45,
|
|
232
|
-
.09
|
|
233
|
-
],
|
|
234
|
-
geometry: res.visorGeo,
|
|
235
|
-
material: res.visorMat
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
238
|
-
position: [
|
|
239
|
-
0,
|
|
240
|
-
.17,
|
|
241
|
-
-.04
|
|
242
|
-
],
|
|
243
|
-
rotation: [
|
|
244
|
-
-.12,
|
|
245
|
-
0,
|
|
246
|
-
0
|
|
247
|
-
],
|
|
248
|
-
castShadow: true,
|
|
249
|
-
geometry: res.torsoGeo,
|
|
250
|
-
material: res.suitMat
|
|
251
|
-
}),
|
|
252
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
253
|
-
position: [
|
|
254
|
-
0,
|
|
255
|
-
-.02,
|
|
256
|
-
-.02
|
|
257
|
-
],
|
|
258
|
-
castShadow: true,
|
|
259
|
-
geometry: res.hipGeo,
|
|
260
|
-
material: res.trimMat
|
|
261
|
-
}),
|
|
262
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
263
|
-
position: [
|
|
264
|
-
-.21,
|
|
265
|
-
.28,
|
|
266
|
-
-.02
|
|
267
|
-
],
|
|
268
|
-
castShadow: true,
|
|
269
|
-
geometry: res.shoulderGeo,
|
|
270
|
-
material: res.trimMat
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
273
|
-
position: [
|
|
274
|
-
.21,
|
|
275
|
-
.28,
|
|
276
|
-
-.02
|
|
277
|
-
],
|
|
278
|
-
castShadow: true,
|
|
279
|
-
geometry: res.shoulderGeo,
|
|
280
|
-
material: res.trimMat
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
283
|
-
position: [
|
|
284
|
-
-.19,
|
|
285
|
-
.2,
|
|
286
|
-
.16
|
|
287
|
-
],
|
|
288
|
-
rotation: [
|
|
289
|
-
-1.18,
|
|
290
|
-
0,
|
|
291
|
-
.14
|
|
292
|
-
],
|
|
293
|
-
castShadow: true,
|
|
294
|
-
geometry: res.limbGeo,
|
|
295
|
-
material: res.suitMat
|
|
296
|
-
}),
|
|
297
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
298
|
-
position: [
|
|
299
|
-
.19,
|
|
300
|
-
.2,
|
|
301
|
-
.16
|
|
302
|
-
],
|
|
303
|
-
rotation: [
|
|
304
|
-
-1.18,
|
|
305
|
-
0,
|
|
306
|
-
-.14
|
|
307
|
-
],
|
|
308
|
-
castShadow: true,
|
|
309
|
-
geometry: res.limbGeo,
|
|
310
|
-
material: res.suitMat
|
|
311
|
-
}),
|
|
312
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
313
|
-
position: [
|
|
314
|
-
-.11,
|
|
315
|
-
-.03,
|
|
316
|
-
.17
|
|
317
|
-
],
|
|
318
|
-
rotation: [
|
|
319
|
-
1.38,
|
|
320
|
-
0,
|
|
321
|
-
0
|
|
322
|
-
],
|
|
323
|
-
castShadow: true,
|
|
324
|
-
geometry: res.legGeo,
|
|
325
|
-
material: res.suitMat
|
|
326
|
-
}),
|
|
327
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
328
|
-
position: [
|
|
329
|
-
.11,
|
|
330
|
-
-.03,
|
|
331
|
-
.17
|
|
332
|
-
],
|
|
333
|
-
rotation: [
|
|
334
|
-
1.38,
|
|
335
|
-
0,
|
|
336
|
-
0
|
|
337
|
-
],
|
|
338
|
-
castShadow: true,
|
|
339
|
-
geometry: res.legGeo,
|
|
340
|
-
material: res.suitMat
|
|
341
|
-
}),
|
|
342
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
343
|
-
position: [
|
|
344
|
-
-.11,
|
|
345
|
-
-.09,
|
|
346
|
-
.37
|
|
347
|
-
],
|
|
348
|
-
rotation: [
|
|
349
|
-
.35,
|
|
350
|
-
0,
|
|
351
|
-
0
|
|
352
|
-
],
|
|
353
|
-
castShadow: true,
|
|
354
|
-
geometry: res.bootGeo,
|
|
355
|
-
material: res.bootMat
|
|
356
|
-
}),
|
|
357
|
-
/* @__PURE__ */ jsx("mesh", {
|
|
358
|
-
position: [
|
|
359
|
-
.11,
|
|
360
|
-
-.09,
|
|
361
|
-
.37
|
|
362
|
-
],
|
|
363
|
-
rotation: [
|
|
364
|
-
.35,
|
|
365
|
-
0,
|
|
366
|
-
0
|
|
367
|
-
],
|
|
368
|
-
castShadow: true,
|
|
369
|
-
geometry: res.bootGeo,
|
|
370
|
-
material: res.bootMat
|
|
371
|
-
})
|
|
372
|
-
]
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
export { DefaultPilotMesh, SeatedPilotMesh };
|
|
376
|
-
|
|
377
|
-
//# sourceMappingURL=kolmoPilotMesh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kolmoPilotMesh.js","names":[],"sources":["../../src/engine/kolmoPilotMesh.tsx"],"sourcesContent":["import React, { useLayoutEffect, useMemo } from \"react\";\nimport * as THREE from \"three\";\nimport { applyRetroMaterial } from \"../shaders/retroShader.js\";\n\nfunction usePilotResources() {\n const res = useMemo(() => {\n const limbGeo = new THREE.CylinderGeometry(0.068, 0.056, 0.34, 8);\n const legGeo = new THREE.CylinderGeometry(0.082, 0.068, 0.38, 8);\n const bootGeo = new THREE.BoxGeometry(0.14, 0.10, 0.22);\n const torsoGeo = new THREE.BoxGeometry(0.36, 0.38, 0.22);\n const hipGeo = new THREE.BoxGeometry(0.30, 0.13, 0.19);\n const shoulderGeo = new THREE.BoxGeometry(0.13, 0.10, 0.16);\n const helmGeo = new THREE.CylinderGeometry(0.135, 0.145, 0.22, 8);\n const visorGeo = new THREE.BoxGeometry(0.21, 0.085, 0.06);\n const packGeo = new THREE.BoxGeometry(0.24, 0.30, 0.12);\n return {\n limbGeo, legGeo, bootGeo, torsoGeo, hipGeo, shoulderGeo, helmGeo, visorGeo, packGeo,\n suitMat: applyRetroMaterial(new THREE.MeshStandardMaterial({ color: \"#cbd5e1\", roughness: 0.62, metalness: 0.12, flatShading: true }), { flatShading: true }),\n trimMat: applyRetroMaterial(new THREE.MeshStandardMaterial({ color: \"#334155\", roughness: 0.72, metalness: 0.2, flatShading: true }), { flatShading: true }),\n visorMat: applyRetroMaterial(new THREE.MeshStandardMaterial({ color: \"#38bdf8\", emissive: \"#0284c7\", emissiveIntensity: 0.55, roughness: 0.22 })),\n bootMat: applyRetroMaterial(new THREE.MeshStandardMaterial({ color: \"#1e293b\", roughness: 0.8, flatShading: true }), { flatShading: true }),\n };\n }, []);\n\n useLayoutEffect(() => () => {\n res.limbGeo.dispose(); res.legGeo.dispose(); res.bootGeo.dispose();\n res.torsoGeo.dispose(); res.hipGeo.dispose(); res.shoulderGeo.dispose();\n res.helmGeo.dispose(); res.visorGeo.dispose(); res.packGeo.dispose();\n res.suitMat.dispose(); res.trimMat.dispose(); res.visorMat.dispose(); res.bootMat.dispose();\n }, [res]);\n\n return res;\n}\n\nexport function DefaultPilotMesh(): React.JSX.Element {\n const res = usePilotResources();\n return (\n <group name=\"KolmoPilotRig\">\n <mesh position={[0, 0.44, 0]} castShadow geometry={res.helmGeo} material={res.suitMat} />\n <mesh position={[0, 0.45, 0.125]} geometry={res.visorGeo} material={res.visorMat} />\n <mesh position={[0, 0.15, 0]} castShadow geometry={res.torsoGeo} material={res.suitMat} />\n <mesh position={[0, -0.07, 0]} castShadow geometry={res.hipGeo} material={res.trimMat} />\n <mesh position={[0, 0.16, -0.15]} castShadow geometry={res.packGeo} material={res.trimMat} />\n <mesh position={[-0.24, 0.28, 0]} castShadow geometry={res.shoulderGeo} material={res.trimMat} />\n <mesh position={[0.24, 0.28, 0]} castShadow geometry={res.shoulderGeo} material={res.trimMat} />\n <mesh position={[-0.25, 0.08, 0.02]} rotation={[0.1, 0, 0.08]} castShadow geometry={res.limbGeo} material={res.suitMat} />\n <mesh position={[0.25, 0.08, 0.02]} rotation={[0.1, 0, -0.08]} castShadow geometry={res.limbGeo} material={res.suitMat} />\n <mesh position={[-0.10, -0.32, 0]} castShadow geometry={res.legGeo} material={res.suitMat} />\n <mesh position={[0.10, -0.32, 0]} castShadow geometry={res.legGeo} material={res.suitMat} />\n <mesh position={[-0.10, -0.53, 0.03]} castShadow geometry={res.bootGeo} material={res.bootMat} />\n <mesh position={[0.10, -0.53, 0.03]} castShadow geometry={res.bootGeo} material={res.bootMat} />\n </group>\n );\n}\n\nexport function SeatedPilotMesh({\n position,\n visible = true,\n}: {\n readonly position: readonly [number, number, number];\n readonly visible?: boolean;\n}): React.JSX.Element {\n const res = usePilotResources();\n return (\n <group name=\"KolmoSeatedPilotRig\" position={[position[0], position[1], position[2]]} visible={visible}>\n <mesh position={[0, 0.44, -0.04]} castShadow geometry={res.helmGeo} material={res.suitMat} />\n <mesh position={[0, 0.45, 0.09]} geometry={res.visorGeo} material={res.visorMat} />\n <mesh position={[0, 0.17, -0.04]} rotation={[-0.12, 0, 0]} castShadow geometry={res.torsoGeo} material={res.suitMat} />\n <mesh position={[0, -0.02, -0.02]} castShadow geometry={res.hipGeo} material={res.trimMat} />\n <mesh position={[-0.21, 0.28, -0.02]} castShadow geometry={res.shoulderGeo} material={res.trimMat} />\n <mesh position={[0.21, 0.28, -0.02]} castShadow geometry={res.shoulderGeo} material={res.trimMat} />\n <mesh position={[-0.19, 0.20, 0.16]} rotation={[-1.18, 0, 0.14]} castShadow geometry={res.limbGeo} material={res.suitMat} />\n <mesh position={[0.19, 0.20, 0.16]} rotation={[-1.18, 0, -0.14]} castShadow geometry={res.limbGeo} material={res.suitMat} />\n <mesh position={[-0.11, -0.03, 0.17]} rotation={[1.38, 0, 0]} castShadow geometry={res.legGeo} material={res.suitMat} />\n <mesh position={[0.11, -0.03, 0.17]} rotation={[1.38, 0, 0]} castShadow geometry={res.legGeo} material={res.suitMat} />\n <mesh position={[-0.11, -0.09, 0.37]} rotation={[0.35, 0, 0]} castShadow geometry={res.bootGeo} material={res.bootMat} />\n <mesh position={[0.11, -0.09, 0.37]} rotation={[0.35, 0, 0]} castShadow geometry={res.bootGeo} material={res.bootMat} />\n </group>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type PaperShellPreset, type PaperShellPresetId, type ShadingMode } from "@khr3/vehicles/paper-shell";
|
|
2
|
-
import { type KolmoAuthoredNodePatch } from "../schema/kolmoSchema.js";
|
|
3
|
-
export interface ProceduralCarOptions {
|
|
4
|
-
readonly horsepower?: number;
|
|
5
|
-
readonly fuelLiters?: number;
|
|
6
|
-
readonly attachedMask?: number;
|
|
7
|
-
readonly patches?: readonly KolmoAuthoredNodePatch[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Generates an offline, ready-to-drive KHR_physics_rigid_bodies + KOLMO_emitter car `.glb`
|
|
11
|
-
* with zero external `.glb` downloads or network calls.
|
|
12
|
-
*/
|
|
13
|
-
export declare function buildProceduralCarGlb(presetOrId?: PaperShellPreset | PaperShellPresetId, shadingMode?: ShadingMode, options?: ProceduralCarOptions): Promise<Uint8Array<ArrayBuffer>>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { stampKolmoNodesIntoGlb } from "../schema/kolmoStamp.js";
|
|
2
|
-
import { ENGINE_TORQUE_CURVES, STEER_SPEED_CURVES } from "@khr3/core/curves";
|
|
3
|
-
import { buildPaperShellAssembly, exportPaperShellKhrGlb } from "@khr3/vehicles/paper-shell";
|
|
4
|
-
// src/engine/kolmoProcedural.ts
|
|
5
|
-
var proceduralCarCache = /* @__PURE__ */ new Map();
|
|
6
|
-
/**
|
|
7
|
-
* Generates an offline, ready-to-drive KHR_physics_rigid_bodies + KOLMO_emitter car `.glb`
|
|
8
|
-
* with zero external `.glb` downloads or network calls.
|
|
9
|
-
*/
|
|
10
|
-
function buildProceduralCarGlb(presetOrId = "coupe_86", shadingMode = "dc-smooth", options) {
|
|
11
|
-
const presetId = typeof presetOrId === "object" ? presetOrId.id : presetOrId;
|
|
12
|
-
const useCache = !options?.patches?.length && options?.attachedMask === void 0 && options?.fuelLiters === void 0;
|
|
13
|
-
const hp = Math.max(40, options?.horsepower ?? (presetId === "kei_van" ? 95 : presetId === "sedan_92" ? 210 : 250));
|
|
14
|
-
const cacheKey = `${presetId}:${shadingMode}:${hp}`;
|
|
15
|
-
if (useCache) {
|
|
16
|
-
const hit = proceduralCarCache.get(cacheKey);
|
|
17
|
-
if (hit) return hit;
|
|
18
|
-
}
|
|
19
|
-
const work = (async () => {
|
|
20
|
-
const assembly = buildPaperShellAssembly(presetId, shadingMode);
|
|
21
|
-
const { glb } = await exportPaperShellKhrGlb(assembly, options?.attachedMask, options?.fuelLiters);
|
|
22
|
-
const stamped = stampKolmoNodesIntoGlb(glb, [
|
|
23
|
-
{
|
|
24
|
-
nodeName: "Socket_seat_driver",
|
|
25
|
-
translation: [
|
|
26
|
-
.34,
|
|
27
|
-
.72,
|
|
28
|
-
-.05
|
|
29
|
-
],
|
|
30
|
-
extension: { socket: "seat" }
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
nodeName: "Socket_exit_driver",
|
|
34
|
-
translation: [
|
|
35
|
-
1.55,
|
|
36
|
-
.45,
|
|
37
|
-
0
|
|
38
|
-
],
|
|
39
|
-
extension: { socket: "exit" }
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
nodeName: "Exhaust_L",
|
|
43
|
-
translation: [
|
|
44
|
-
.42,
|
|
45
|
-
.24,
|
|
46
|
-
-1.95
|
|
47
|
-
],
|
|
48
|
-
extension: {
|
|
49
|
-
kind: "plume",
|
|
50
|
-
drive: "boost",
|
|
51
|
-
color: [
|
|
52
|
-
.22,
|
|
53
|
-
.91,
|
|
54
|
-
1
|
|
55
|
-
],
|
|
56
|
-
size: .95
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
nodeName: "Exhaust_R",
|
|
61
|
-
translation: [
|
|
62
|
-
-.42,
|
|
63
|
-
.24,
|
|
64
|
-
-1.95
|
|
65
|
-
],
|
|
66
|
-
extension: {
|
|
67
|
-
kind: "plume",
|
|
68
|
-
drive: "boost",
|
|
69
|
-
color: [
|
|
70
|
-
.22,
|
|
71
|
-
.91,
|
|
72
|
-
1
|
|
73
|
-
],
|
|
74
|
-
size: .95
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
...options?.patches ?? []
|
|
78
|
-
], { tune: {
|
|
79
|
-
engineHorsepower: hp,
|
|
80
|
-
engineMaxRPM: 7400,
|
|
81
|
-
gearRatios: [
|
|
82
|
-
3.4,
|
|
83
|
-
2.05,
|
|
84
|
-
1.38,
|
|
85
|
-
1,
|
|
86
|
-
.82
|
|
87
|
-
],
|
|
88
|
-
finalDriveRatio: 3.72,
|
|
89
|
-
transmissionMode: "auto",
|
|
90
|
-
maxSteerAngle: .56,
|
|
91
|
-
engineTorqueCurveData: ENGINE_TORQUE_CURVES.naScreamer,
|
|
92
|
-
steerAngleCurveData: STEER_SPEED_CURVES.driftCountersteer
|
|
93
|
-
} });
|
|
94
|
-
return new Uint8Array(stamped);
|
|
95
|
-
})();
|
|
96
|
-
if (useCache) proceduralCarCache.set(cacheKey, work);
|
|
97
|
-
return work;
|
|
98
|
-
}
|
|
99
|
-
export { buildProceduralCarGlb };
|
|
100
|
-
|
|
101
|
-
//# sourceMappingURL=kolmoProcedural.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kolmoProcedural.js","names":[],"sources":["../../src/engine/kolmoProcedural.ts"],"sourcesContent":["import { ENGINE_TORQUE_CURVES, STEER_SPEED_CURVES } from \"@khr3/core/curves\";\nimport {\n buildPaperShellAssembly,\n exportPaperShellKhrGlb,\n type PaperShellPreset,\n type PaperShellPresetId,\n type ShadingMode,\n} from \"@khr3/vehicles/paper-shell\";\nimport { stampKolmoNodesIntoGlb, type KolmoAuthoredNodePatch } from \"../schema/kolmoSchema.js\";\n\nexport interface ProceduralCarOptions {\n readonly horsepower?: number;\n readonly fuelLiters?: number;\n readonly attachedMask?: number;\n readonly patches?: readonly KolmoAuthoredNodePatch[];\n}\n\nconst proceduralCarCache = new Map<string, Promise<Uint8Array<ArrayBuffer>>>();\n\n/**\n * Generates an offline, ready-to-drive KHR_physics_rigid_bodies + KOLMO_emitter car `.glb`\n * with zero external `.glb` downloads or network calls.\n */\nexport function buildProceduralCarGlb(\n presetOrId: PaperShellPreset | PaperShellPresetId = \"coupe_86\",\n shadingMode: ShadingMode = \"dc-smooth\",\n options?: ProceduralCarOptions,\n): Promise<Uint8Array<ArrayBuffer>> {\n const presetId: PaperShellPresetId = typeof presetOrId === \"object\" ? presetOrId.id : presetOrId;\n const useCache =\n !options?.patches?.length &&\n options?.attachedMask === undefined &&\n options?.fuelLiters === undefined;\n const hp = Math.max(40, options?.horsepower ?? (presetId === \"kei_van\" ? 95 : presetId === \"sedan_92\" ? 210 : 250));\n const cacheKey = `${presetId}:${shadingMode}:${hp}`;\n if (useCache) {\n const hit = proceduralCarCache.get(cacheKey);\n if (hit)\n return hit;\n }\n\n const work = (async (): Promise<Uint8Array<ArrayBuffer>> => {\n const assembly = buildPaperShellAssembly(presetId, shadingMode);\n const { glb } = await exportPaperShellKhrGlb(\n assembly,\n options?.attachedMask,\n options?.fuelLiters,\n );\n const stamped = stampKolmoNodesIntoGlb(\n glb,\n [\n { nodeName: \"Socket_seat_driver\", translation: [0.34, 0.72, -0.05], extension: { socket: \"seat\" } },\n { nodeName: \"Socket_exit_driver\", translation: [1.55, 0.45, 0], extension: { socket: \"exit\" } },\n {\n nodeName: \"Exhaust_L\",\n translation: [0.42, 0.24, -1.95],\n extension: { kind: \"plume\", drive: \"boost\", color: [0.22, 0.91, 1], size: 0.95 },\n },\n {\n nodeName: \"Exhaust_R\",\n translation: [-0.42, 0.24, -1.95],\n extension: { kind: \"plume\", drive: \"boost\", color: [0.22, 0.91, 1], size: 0.95 },\n },\n ...(options?.patches ?? []),\n ],\n {\n tune: {\n engineHorsepower: hp,\n engineMaxRPM: 7400,\n gearRatios: [3.4, 2.05, 1.38, 1.0, 0.82],\n finalDriveRatio: 3.72,\n transmissionMode: \"auto\",\n maxSteerAngle: 0.56,\n engineTorqueCurveData: ENGINE_TORQUE_CURVES.naScreamer,\n steerAngleCurveData: STEER_SPEED_CURVES.driftCountersteer,\n },\n },\n );\n return new Uint8Array(stamped);\n })();\n\n if (useCache)\n proceduralCarCache.set(cacheKey, work);\n return work;\n}\n"],"mappings":";;;;AAiBA,IAAM,qCAAqB,IAAI,IAA8C;;;;;AAM7E,SAAgB,sBACZ,aAAoD,YACpD,cAA2B,aAC3B,SACgC;CAChC,MAAM,WAA+B,OAAO,eAAe,WAAW,WAAW,KAAK;CACtF,MAAM,WACF,CAAC,SAAS,SAAS,UACnB,SAAS,iBAAiB,KAAA,KAC1B,SAAS,eAAe,KAAA;CAC5B,MAAM,KAAK,KAAK,IAAI,IAAI,SAAS,eAAe,aAAa,YAAY,KAAK,aAAa,aAAa,MAAM,IAAI;CAClH,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG;CAC/C,IAAI,UAAU;EACV,MAAM,MAAM,mBAAmB,IAAI,QAAQ;EAC3C,IAAI,KACA,OAAO;CACf;CAEA,MAAM,QAAQ,YAA8C;EACxD,MAAM,WAAW,wBAAwB,UAAU,WAAW;EAC9D,MAAM,EAAE,QAAQ,MAAM,uBAClB,UACA,SAAS,cACT,SAAS,UACb;EACA,MAAM,UAAU,uBACZ,KACA;GACI;IAAE,UAAU;IAAsB,aAAa;KAAC;KAAM;KAAM;IAAK;IAAG,WAAW,EAAE,QAAQ,OAAO;GAAE;GAClG;IAAE,UAAU;IAAsB,aAAa;KAAC;KAAM;KAAM;IAAC;IAAG,WAAW,EAAE,QAAQ,OAAO;GAAE;GAC9F;IACI,UAAU;IACV,aAAa;KAAC;KAAM;KAAM;IAAK;IAC/B,WAAW;KAAE,MAAM;KAAS,OAAO;KAAS,OAAO;MAAC;MAAM;MAAM;KAAC;KAAG,MAAM;IAAK;GACnF;GACA;IACI,UAAU;IACV,aAAa;KAAC;KAAO;KAAM;IAAK;IAChC,WAAW;KAAE,MAAM;KAAS,OAAO;KAAS,OAAO;MAAC;MAAM;MAAM;KAAC;KAAG,MAAM;IAAK;GACnF;GACA,GAAI,SAAS,WAAW,CAAC;EAC7B,GACA,EACI,MAAM;GACF,kBAAkB;GAClB,cAAc;GACd,YAAY;IAAC;IAAK;IAAM;IAAM;IAAK;GAAI;GACvC,iBAAiB;GACjB,kBAAkB;GAClB,eAAe;GACf,uBAAuB,qBAAqB;GAC5C,qBAAqB,mBAAmB;EAC5C,EACJ,CACJ;EACA,OAAO,IAAI,WAAW,OAAO;CACjC,EAAA,CAAG;CAEH,IAAI,UACA,mBAAmB,IAAI,UAAU,IAAI;CACzC,OAAO;AACX"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import * as THREE from "three";
|
|
3
|
-
export interface RoomEnvRigProps {
|
|
4
|
-
intensity?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function RoomEnvRig({ intensity }: RoomEnvRigProps): null;
|
|
7
|
-
export interface RetroViewportSyncProps {
|
|
8
|
-
onViewportChange?: (w: number, h: number, dpr: number) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function RetroViewportSync({ onViewportChange }?: RetroViewportSyncProps): null;
|
|
11
|
-
export declare function ShadowSnapRig({ sunLightRef }: {
|
|
12
|
-
sunLightRef: React.RefObject<THREE.DirectionalLight | null>;
|
|
13
|
-
}): null;
|
package/dist/engine/kolmoRigs.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { syncRetroViewport } from "../shaders/retroUniforms.js";
|
|
2
|
-
import { useEffect, useRef } from "react";
|
|
3
|
-
import * as THREE from "three";
|
|
4
|
-
import { useFrame, useThree } from "@react-three/fiber";
|
|
5
|
-
import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment.js";
|
|
6
|
-
// src/engine/kolmoRigs.tsx
|
|
7
|
-
function RoomEnvRig({ intensity = .65 }) {
|
|
8
|
-
const { gl, scene } = useThree();
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const pmrem = new THREE.PMREMGenerator(gl);
|
|
11
|
-
const room = new RoomEnvironment();
|
|
12
|
-
const rt = pmrem.fromScene(room, .04);
|
|
13
|
-
const prevEnv = scene.environment;
|
|
14
|
-
const prevInt = scene.environmentIntensity;
|
|
15
|
-
scene.environment = rt.texture;
|
|
16
|
-
scene.environmentIntensity = intensity;
|
|
17
|
-
room.dispose();
|
|
18
|
-
pmrem.dispose();
|
|
19
|
-
return () => {
|
|
20
|
-
scene.environment = prevEnv;
|
|
21
|
-
scene.environmentIntensity = prevInt;
|
|
22
|
-
rt.dispose();
|
|
23
|
-
};
|
|
24
|
-
}, [
|
|
25
|
-
gl,
|
|
26
|
-
scene,
|
|
27
|
-
intensity
|
|
28
|
-
]);
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
var _fbSize = new THREE.Vector2();
|
|
32
|
-
function RetroViewportSync({ onViewportChange } = {}) {
|
|
33
|
-
const { gl } = useThree();
|
|
34
|
-
const lastRef = useRef({
|
|
35
|
-
w: 0,
|
|
36
|
-
h: 0,
|
|
37
|
-
dpr: 0
|
|
38
|
-
});
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
gl.getDrawingBufferSize(_fbSize);
|
|
41
|
-
const dpr = gl.getPixelRatio();
|
|
42
|
-
lastRef.current = {
|
|
43
|
-
w: _fbSize.x,
|
|
44
|
-
h: _fbSize.y,
|
|
45
|
-
dpr
|
|
46
|
-
};
|
|
47
|
-
syncRetroViewport(_fbSize.x, _fbSize.y, dpr);
|
|
48
|
-
onViewportChange?.(_fbSize.x, _fbSize.y, dpr);
|
|
49
|
-
}, [gl, onViewportChange]);
|
|
50
|
-
useFrame(() => {
|
|
51
|
-
gl.getDrawingBufferSize(_fbSize);
|
|
52
|
-
const dpr = gl.getPixelRatio();
|
|
53
|
-
const last = lastRef.current;
|
|
54
|
-
if (_fbSize.x !== last.w || _fbSize.y !== last.h || dpr !== last.dpr) {
|
|
55
|
-
last.w = _fbSize.x;
|
|
56
|
-
last.h = _fbSize.y;
|
|
57
|
-
last.dpr = dpr;
|
|
58
|
-
syncRetroViewport(_fbSize.x, _fbSize.y, dpr);
|
|
59
|
-
onViewportChange?.(_fbSize.x, _fbSize.y, dpr);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
var _sunOff = new THREE.Vector3(-120, 85, -120);
|
|
65
|
-
var _origin = new THREE.Vector3(0, 0, 0);
|
|
66
|
-
var _up = new THREE.Vector3(0, 1, 0);
|
|
67
|
-
var _bx = new THREE.Vector3();
|
|
68
|
-
var _by = new THREE.Vector3();
|
|
69
|
-
var _bz = new THREE.Vector3();
|
|
70
|
-
new THREE.Matrix4().lookAt(_sunOff, _origin, _up).extractBasis(_bx, _by, _bz);
|
|
71
|
-
function ShadowSnapRig({ sunLightRef }) {
|
|
72
|
-
useEffect(() => {
|
|
73
|
-
const sun = sunLightRef.current;
|
|
74
|
-
if (!sun) return;
|
|
75
|
-
const shadow = sun.shadow;
|
|
76
|
-
const origUpdate = shadow.updateMatrices;
|
|
77
|
-
shadow.updateMatrices = function(light) {
|
|
78
|
-
if (light === sun && sun.castShadow) {
|
|
79
|
-
const cam = shadow.camera;
|
|
80
|
-
const mapSize = shadow.mapSize.x || 1024;
|
|
81
|
-
const texel = Math.max(1, cam.right - cam.left) / mapSize;
|
|
82
|
-
const sx = Math.round(sun.target.position.dot(_bx) / texel) * texel;
|
|
83
|
-
const sy = Math.round(sun.target.position.dot(_by) / texel) * texel;
|
|
84
|
-
const sz = sun.target.position.dot(_bz);
|
|
85
|
-
sun.target.position.set(0, 0, 0).addScaledVector(_bx, sx).addScaledVector(_by, sy).addScaledVector(_bz, sz);
|
|
86
|
-
sun.position.copy(sun.target.position).add(_sunOff);
|
|
87
|
-
sun.updateMatrixWorld();
|
|
88
|
-
sun.target.updateMatrixWorld();
|
|
89
|
-
}
|
|
90
|
-
return origUpdate.call(this, light);
|
|
91
|
-
};
|
|
92
|
-
return () => {
|
|
93
|
-
shadow.updateMatrices = origUpdate;
|
|
94
|
-
};
|
|
95
|
-
}, [sunLightRef]);
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
export { RetroViewportSync, RoomEnvRig, ShadowSnapRig };
|
|
99
|
-
|
|
100
|
-
//# sourceMappingURL=kolmoRigs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kolmoRigs.js","names":[],"sources":["../../src/engine/kolmoRigs.tsx"],"sourcesContent":["import { syncRetroViewport } from \"../shaders/retroShader.js\";\nimport React, { useEffect, useRef } from \"react\";\nimport * as THREE from \"three\";\nimport { useFrame, useThree } from \"@react-three/fiber\";\nimport { RoomEnvironment } from \"three/examples/jsm/environments/RoomEnvironment.js\";\n\nexport interface RoomEnvRigProps {\n intensity?: number;\n}\n\nexport function RoomEnvRig({ intensity = 0.65 }: RoomEnvRigProps): null {\n const { gl, scene } = useThree();\n useEffect(() => {\n const pmrem = new THREE.PMREMGenerator(gl);\n const room = new RoomEnvironment();\n const rt = pmrem.fromScene(room, 0.04);\n const prevEnv = scene.environment;\n const prevInt = scene.environmentIntensity;\n scene.environment = rt.texture;\n scene.environmentIntensity = intensity;\n room.dispose();\n pmrem.dispose();\n return () => {\n scene.environment = prevEnv;\n scene.environmentIntensity = prevInt;\n rt.dispose();\n };\n }, [gl, scene, intensity]);\n return null;\n}\n\nexport interface RetroViewportSyncProps {\n onViewportChange?: (w: number, h: number, dpr: number) => void;\n}\n\nconst _fbSize = new THREE.Vector2();\n\nexport function RetroViewportSync({ onViewportChange }: RetroViewportSyncProps = {}): null {\n const { gl } = useThree();\n const lastRef = useRef({ w: 0, h: 0, dpr: 0 });\n useEffect(() => {\n gl.getDrawingBufferSize(_fbSize);\n const dpr = gl.getPixelRatio();\n lastRef.current = { w: _fbSize.x, h: _fbSize.y, dpr };\n syncRetroViewport(_fbSize.x, _fbSize.y, dpr);\n onViewportChange?.(_fbSize.x, _fbSize.y, dpr);\n }, [gl, onViewportChange]);\n\n useFrame(() => {\n gl.getDrawingBufferSize(_fbSize);\n const dpr = gl.getPixelRatio();\n const last = lastRef.current;\n if (_fbSize.x !== last.w || _fbSize.y !== last.h || dpr !== last.dpr) {\n last.w = _fbSize.x;\n last.h = _fbSize.y;\n last.dpr = dpr;\n syncRetroViewport(_fbSize.x, _fbSize.y, dpr);\n onViewportChange?.(_fbSize.x, _fbSize.y, dpr);\n }\n });\n return null;\n}\n\nconst _sunOff = new THREE.Vector3(-120, 85, -120);\nconst _origin = new THREE.Vector3(0, 0, 0);\nconst _up = new THREE.Vector3(0, 1, 0);\nconst _bx = new THREE.Vector3();\nconst _by = new THREE.Vector3();\nconst _bz = new THREE.Vector3();\nnew THREE.Matrix4().lookAt(_sunOff, _origin, _up).extractBasis(_bx, _by, _bz);\n\nexport function ShadowSnapRig({ sunLightRef }: { sunLightRef: React.RefObject<THREE.DirectionalLight | null> }): null {\n useEffect(() => {\n const sun = sunLightRef.current;\n if (!sun)\n return;\n const shadow = sun.shadow;\n const origUpdate = shadow.updateMatrices;\n shadow.updateMatrices = function (this: THREE.DirectionalLightShadow, light: THREE.Light) {\n if (light === sun && sun.castShadow) {\n const cam = shadow.camera;\n const mapSize = shadow.mapSize.x || 1024;\n const texel = Math.max(1, cam.right - cam.left) / mapSize;\n const sx = Math.round(sun.target.position.dot(_bx) / texel) * texel;\n const sy = Math.round(sun.target.position.dot(_by) / texel) * texel;\n const sz = sun.target.position.dot(_bz);\n sun.target.position.set(0, 0, 0).addScaledVector(_bx, sx).addScaledVector(_by, sy).addScaledVector(_bz, sz);\n sun.position.copy(sun.target.position).add(_sunOff);\n sun.updateMatrixWorld();\n sun.target.updateMatrixWorld();\n }\n return origUpdate.call(this, light);\n };\n return () => {\n shadow.updateMatrices = origUpdate;\n };\n }, [sunLightRef]);\n return null;\n}\n"],"mappings":"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"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { flipVehicleBodyUpright, kolmoActions, kolmoTelemetry, type KolmoTelemetryState, } from "./kolmoActions.js";
|
|
2
|
-
export { readFloatingOriginAnchorXZ, shiftFloatingOriginEntities, type FloatingOriginRapierSync, } from "./kolmoFloatingOrigin.js";
|
|
3
|
-
export { ActorTrait, FloatingBodyTrait, InteractableTrait, PilotLink, PilotedTag, TransformTrait, VehicleTelemetryTrait, VehicleTrait, VelocityTrait, WorldSessionTrait, WorldSpawnTrait, ensureWorldSession, kolmoWorld, pilotedVehicleQuery, publishWorldSpawn, useActiveKolmoWorld, vehicleSimQuery, writeEntityKinematics, writeVehicleTelemetry, type ActorTraitData, type FloatingBodyTraitData, type KolmoControlMode, type ShiftableBody, type VehicleTraitData, type WorldSpawnData, } from "./kolmoTraits.js";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { flipVehicleBodyUpright, kolmoActions, kolmoTelemetry } from "./kolmoActions.js";
|
|
2
|
-
import { readFloatingOriginAnchorXZ, shiftFloatingOriginEntities } from "./kolmoFloatingOrigin.js";
|
|
3
|
-
import { ActorTrait, FloatingBodyTrait, InteractableTrait, PilotLink, PilotedTag, TransformTrait, VehicleTelemetryTrait, VehicleTrait, VelocityTrait, WorldSessionTrait, WorldSpawnTrait, ensureWorldSession, kolmoWorld, pilotedVehicleQuery, publishWorldSpawn, useActiveKolmoWorld, vehicleSimQuery, writeEntityKinematics, writeVehicleTelemetry } from "./kolmoTraits.js";
|
|
4
|
-
export { ActorTrait, FloatingBodyTrait, InteractableTrait, PilotLink, PilotedTag, TransformTrait, VehicleTelemetryTrait, VehicleTrait, VelocityTrait, WorldSessionTrait, WorldSpawnTrait, ensureWorldSession, flipVehicleBodyUpright, kolmoActions, kolmoTelemetry, kolmoWorld, pilotedVehicleQuery, publishWorldSpawn, readFloatingOriginAnchorXZ, shiftFloatingOriginEntities, useActiveKolmoWorld, vehicleSimQuery, writeEntityKinematics, writeVehicleTelemetry };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kolmoStore.js","sources":["../../src/engine/kolmoStore.ts"],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import * as THREE from "three";
|
|
3
|
-
import { type KhrAssemblyHandle, type KhrAssetBundle } from "@khr3/core";
|
|
4
|
-
export interface KolmoSurfaceProps {
|
|
5
|
-
src?: string;
|
|
6
|
-
bundle?: KhrAssetBundle;
|
|
7
|
-
size?: number;
|
|
8
|
-
position?: [number, number, number];
|
|
9
|
-
}
|
|
10
|
-
export declare function KolmoSurface({ src, bundle, size, position, }: KolmoSurfaceProps): React.JSX.Element;
|
|
11
|
-
export declare function togglePropJoint(handle: KhrAssemblyHandle | null, bundle: KhrAssetBundle, openState: boolean, clickedObj?: THREE.Object3D | null, perBodyOpen?: Map<string, boolean>): boolean;
|
|
12
|
-
export interface KolmoPropProps {
|
|
13
|
-
src?: string;
|
|
14
|
-
bundle?: KhrAssetBundle;
|
|
15
|
-
position?: [number, number, number];
|
|
16
|
-
fixed?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function KolmoProp({ src, bundle, position, fixed, }: KolmoPropProps): React.JSX.Element | null;
|