实现软体和软体约束,刚体和软体约束

如何实现软体和刚体软体和软体的约束?
How to implement the constraints of soft and rigid soft bodies and soft bodies?