---
title: tolerance
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/physicsdistancejoint/tolerance
---

# tolerance

An extension of the distance limit, as a percentage-based error tolerance.

## Declaration

```swift
var tolerance: Float
```

## Discussion

Discussion For example, a tolerance of 0.01 extends the distance limit by 1 percent. When the pins exceed this distance, the joint constrains the pins until they are within the distance limit. important: Use a non-negative value for the tolerance.
