<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/WorldAnchor/init(originFromAnchorTransform:sharedWithNearbyParticipants:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit11WorldAnchorV010originFromC9Transform28sharedWithNearbyParticipantsACSo13simd_float4x4a_Sbtcfc"
  },
  "title" : "init(originFromAnchorTransform:sharedWithNearbyParticipants:)"
}
-->

# init(originFromAnchorTransform:sharedWithNearbyParticipants:)

Initialize a world anchor with a transform and indicate if it should be shared with nearby participants.

```
init(originFromAnchorTransform: simd_float4x4, sharedWithNearbyParticipants: Bool)
```

## Parameters

`originFromAnchorTransform`

The transform from the world anchor to the origin coordinate system.

`sharedWithNearbyParticipants`

Indicate if the anchor should be shared with nearby participants.

## Discussion> Note:
> 
> - Nearby participants refer to participants that are nearby to the local participant in a SharePlay session.
> - World anchors that are marked for sharing do not get persisted and their lifetime is limited to that of the SharePlay session.

---

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)