<!--
{
  "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/GeometricPin/position(relativeTo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation12GeometricPinV8position10relativeTos5SIMD3VySfGSgAA6EntityCSg_tF"
  },
  "title" : "position(relativeTo:)"
}
-->

# position(relativeTo:)

Calculates and returns the current position of the pin relative to a reference entity, adjusted by the optional offset position.

```
@MainActor func position(relativeTo referenceEntity: Entity?) -> SIMD3<Float>?
```

## Parameters

`referenceEntity`

Reference `Entity` which defines the frame of reference for the returned position.
Can be `nil`, which is equivalent to “world space”.

---

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)