Files
IntoHole/assets/collections/storybook/physics.json
T
Yanchen d1141b04c7 feat: 更新 IntoHole 的球体、滑槽和环境资产
- 为铁球、陶瓷球和木球制作风格化材质,归档 CC0 原始参考
- 更新方形球洞和实心滑槽,统一 90° 弯槽并兼容旧存档
- 用顺流泡沫表示水流方向,为冰块制作三种交错的裂纹
- 同步 Blender 源资产、Godot 加载、工坊和试玩预览
2026-11-19 16:18:41 +08:00

174 lines
4.9 KiB
JSON

{
"schemaVersion": 1,
"ballTypes": [
{
"ballTypeId": "wood_ball",
"displayName": "原木球",
"assetId": "wood_ball",
"physicsProfileId": "wood_game"
},
{
"ballTypeId": "ceramic_ball",
"displayName": "陶瓷球",
"assetId": "ceramic_ball",
"physicsProfileId": "ceramic_game"
},
{
"ballTypeId": "iron_ball",
"displayName": "铁球",
"assetId": "iron_ball",
"physicsProfileId": "solid_iron_test"
}
],
"physicsProfiles": {
"solid_iron_test": {
"massKg": 890.0760306150601,
"inertiaModel": "solidSphere",
"dragCoefficient": 0.47,
"contactMaterialId": "iron"
},
"wood_game": {
"massKg": 60,
"inertiaModel": "solidSphere",
"dragCoefficient": 0.47,
"contactMaterialId": "wood"
},
"ceramic_game": {
"massKg": 330,
"inertiaModel": "solidSphere",
"dragCoefficient": 0.04,
"contactMaterialId": "ceramic"
}
},
"contactMaterialPairs": [
{
"materialAId": "iron",
"materialBId": "painted_wood",
"staticFriction": 0.42,
"dynamicFriction": 0.32,
"rollingResistance": 0.025,
"restitution": 0.08
},
{
"materialAId": "iron",
"materialBId": "iron",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "wood",
"materialBId": "painted_wood",
"staticFriction": 0.42,
"dynamicFriction": 0.32,
"rollingResistance": 0.025,
"restitution": 0.08
},
{
"materialAId": "ceramic",
"materialBId": "painted_wood",
"staticFriction": 0.42,
"dynamicFriction": 0.32,
"rollingResistance": 0.025,
"restitution": 0.08
},
{
"materialAId": "wood",
"materialBId": "wood",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "ceramic",
"materialBId": "ceramic",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "wood",
"materialBId": "ceramic",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "wood",
"materialBId": "iron",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "ceramic",
"materialBId": "iron",
"staticFriction": 0.35,
"dynamicFriction": 0.25,
"rollingResistance": 0.01,
"restitution": 0.15
},
{
"materialAId": "wood",
"materialBId": "wall",
"staticFriction": 1.0,
"dynamicFriction": 0.9,
"rollingResistance": 0.8,
"restitution": 0.02
},
{
"materialAId": "wood",
"materialBId": "ice",
"staticFriction": 0.03,
"dynamicFriction": 0.02,
"rollingResistance": 0.002,
"restitution": 0.02
},
{
"materialAId": "ceramic",
"materialBId": "wall",
"staticFriction": 1.0,
"dynamicFriction": 0.9,
"rollingResistance": 0.8,
"restitution": 0.02
},
{
"materialAId": "ceramic",
"materialBId": "ice",
"staticFriction": 0.03,
"dynamicFriction": 0.02,
"rollingResistance": 0.002,
"restitution": 0.02
},
{
"materialAId": "iron",
"materialBId": "wall",
"staticFriction": 1.0,
"dynamicFriction": 0.9,
"rollingResistance": 0.8,
"restitution": 0.02
},
{
"materialAId": "iron",
"materialBId": "ice",
"staticFriction": 0.03,
"dynamicFriction": 0.02,
"rollingResistance": 0.002,
"restitution": 0.02
}
],
"notes": [
"Game tuning: all balls have the same authored radius and shape. Wood mass 60 kg; ceramic 330 kg (confirmed initial mass, sinks and travels less than 2 m in the 8-second reference current); iron keeps its original 890.076 kg.",
"Air drag coefficients are gameplay parameters, not measured material constants: wood 0.47, ceramic 0.04, iron 0.47. Iron receives aerodynamic force through the same equation as other balls; its mass and ordinary contact resistance limit motion in the reference wind.",
"No extra fan multiplier or direct wind velocity override. All types use the established contact coefficients to isolate mass and aerodynamic differences.",
"The current native per-body friction/restitution approximation is retained; simultaneous mixed contact-pair solving is not introduced by this asset change.",
"Wall contacts use high friction and rolling resistance; ice uses low friction and rolling resistance. These are shared surface tuning, never per-level ball overrides."
],
"airDensity": 1.225
}