<!--
{
  "documentType" : "article",
  "framework" : "USD",
  "identifier" : "/documentation/USD/distance",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "distance"
}
-->

# distance

A threshold that measures the user’s proximity to one or more prims.

## Discussion

This distance is in stage units (see [Encoding Stage Linear Units](https://openusd.org/docs/api/group___usd_geom_linear_units__group.html)) and measures from the center of each prim in [affectedObjects](/documentation/USD/affectedobjects), to the device’s camera.

### Declaration

```other
uniform double distance = 0.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)