EG/plugins/user/rigid_body_physics/config/physics_config.json
2025-10-30 11:46:41 +08:00

52 lines
1.0 KiB
JSON

{
"physics": {
"gravity": [0, 0, -9.81],
"time_step": 0.016667,
"max_substeps": 10,
"solver_iterations": 10,
"solver_tolerance": 0.001
},
"materials": {
"concrete": {
"friction": 0.7,
"restitution": 0.1,
"density": 2400.0,
"color": [0.6, 0.6, 0.6, 1.0]
},
"wood": {
"friction": 0.4,
"restitution": 0.2,
"density": 700.0,
"color": [0.8, 0.6, 0.4, 1.0]
},
"metal": {
"friction": 0.3,
"restitution": 0.4,
"density": 7800.0,
"color": [0.7, 0.7, 0.8, 1.0]
},
"rubber": {
"friction": 0.9,
"restitution": 0.8,
"density": 1200.0,
"color": [0.2, 0.2, 0.2, 1.0]
},
"ice": {
"friction": 0.03,
"restitution": 0.1,
"density": 917.0,
"color": [0.8, 0.9, 1.0, 1.0]
}
},
"debug": {
"enabled": false,
"show_constraints": true,
"show_aabbs": false,
"show_contacts": false,
"show_normals": false
},
"performance": {
"max_particles": 1000,
"profiler_enabled": true
}
}