EG/plugins/user/soft_body_cloth_physics/config/cloth_settings.json
2025-12-12 16:16:15 +08:00

94 lines
2.5 KiB
JSON

{
"plugin": {
"name": "SoftBodyClothPhysics",
"version": "1.0.0",
"author": "iFlow Team",
"description": "软体物理和布料模拟插件"
},
"physics": {
"gravity": [0, 0, -9.81],
"air_density": 1.225,
"water_density": 1000.0,
"default_cloth_density": 0.5,
"default_soft_body_density": 1.0
},
"cloth": {
"default_resolution_x": 10,
"default_resolution_y": 10,
"default_width": 2.0,
"default_height": 2.0,
"materials": {
"cotton": {
"density": 0.6,
"linear_stiffness": 0.7,
"angular_stiffness": 0.6,
"volume_stiffness": 0.4,
"friction": 0.6,
"restitution": 0.1,
"pressure_coefficient": 0.0,
"drag_coefficient": 0.02,
"lift_coefficient": 0.01
},
"silk": {
"density": 0.3,
"linear_stiffness": 0.5,
"angular_stiffness": 0.4,
"volume_stiffness": 0.2,
"friction": 0.2,
"restitution": 0.3,
"pressure_coefficient": 0.0,
"drag_coefficient": 0.05,
"lift_coefficient": 0.03
},
"leather": {
"density": 0.8,
"linear_stiffness": 0.9,
"angular_stiffness": 0.8,
"volume_stiffness": 0.6,
"friction": 0.7,
"restitution": 0.1,
"pressure_coefficient": 0.0,
"drag_coefficient": 0.01,
"lift_coefficient": 0.005
}
}
},
"soft_body": {
"default_resolution": 8,
"default_radius": 1.0,
"materials": {
"rubber": {
"density": 1.2,
"linear_stiffness": 0.9,
"angular_stiffness": 0.8,
"volume_stiffness": 0.7,
"friction": 0.8,
"restitution": 0.6,
"pressure_coefficient": 0.0,
"drag_coefficient": 0.01,
"lift_coefficient": 0.005
},
"jelly": {
"density": 1.1,
"linear_stiffness": 0.6,
"angular_stiffness": 0.5,
"volume_stiffness": 0.8,
"friction": 0.7,
"restitution": 0.2,
"pressure_coefficient": 0.0,
"drag_coefficient": 0.02,
"lift_coefficient": 0.01
}
}
},
"debug": {
"enable_visualization": false,
"show_cloth_mesh": true,
"show_cloth_anchors": true,
"show_cloth_forces": false,
"show_cloth_velocities": false,
"show_soft_body_mesh": true,
"show_soft_body_forces": false,
"show_soft_body_velocities": false
}
}