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

# stiffness

The resistance of the body’s volume to diverge from targetVolume.

## Declaration

```swift
var stiffness: Float { get set }
```

## Discussion

Discussion The valid range is [0.0, 1.0], both included.

## See Also

### Configuring inflation

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