<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothBodyComponent/InflationConstraint-swift.struct/init(targetVolume:stiffness:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13BodyComponentV19InflationConstraintV12targetVolume9stiffnessAESf_Sftcfc"
  },
  "title" : "init(targetVolume:stiffness:)"
}
-->

# init(targetVolume:stiffness:)

Creates an inflation configuration.

```
init(targetVolume: Float, stiffness: Float = 1.0)
```

## Parameters

`targetVolume`

The target volume (in ㎥) that the body tries to match.

`stiffness`

The resistance to diverge from the target volume. Valid range is [0.0, 1.0].

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)