Contents

ar_world_anchor_shared_with_nearby_participants_create

Initialize a world anchor that should be shared with nearby participants.

Declaration

extern ar_world_anchor_t ar_world_anchor_shared_with_nearby_participants_create(simd_float4x4 origin_from_anchor_transform);

Parameters

  • origin_from_anchor_transform:

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

Return Value

An instance of ar_world_anchor_t which is marked to be shared with nearby participants.

Discussion

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

See Also

World tracking