Expose bmesh.calc_volume in geometry nodes for cloth pressure feature
With the upcoming physics nodes in Blender 5.2, cloth is gonna get real awesome, but it is missing the "pressure" feature. I feel like it would be much easier to implement that in nodes if the bmesh.calc_volume() function were exposed as a geometry node.
A closure in the simulation loop of the cloth physics node could allow arbitrary code to be run before each simulation tick, allowing the volume of each mesh island to be calculated once per tick and stored as a vertex attribute, and at that point... implementing cloth-pressure is just a matter of applying a force along normals based on the ratio between current volume and initial volume, for each island, right?
0 Comments