<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsDistanceJoint/tolerance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20PhysicsDistanceJointV9toleranceSfvp"
  },
  "title" : "tolerance"
}
-->

# tolerance

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

```
var tolerance: Float
```

## 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.

---

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)