inflationConstraint
An optional inflation constraint for representing inflatable bodies (must be watertight).
Declaration
var inflationConstraint: ClothBodyComponent.InflationConstraint? { get set }Discussion
When non-nil, the body will try to maintain the specified target volume with the given stiffness. The mesh must be watertight for this inflation constraint to have any effect.
Setting this to nil disables the inflation constraint (equivalent to a stiffness of zero).