---
title: targetVolume
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/inflationconstraint-swift.struct/targetvolume
---

# targetVolume

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

## Declaration

```swift
var targetVolume: Float? { get set }
```

## Discussion

Discussion Must be positive when non-nil. When nil, the volume of the body’s mesh is used.

## See Also

### Configuring inflation

- [stiffness](realitykit/clothbodycomponent/inflationconstraint-swift.struct/stiffness.md)
