Instance Method

initWithTransform:extent:

Creates a new environment probe anchor.

Declaration

- (instancetype)initWithTransform:(simd_float4x4)transform extent:(simd_float3)extent;

Parameters

transform

A matrix encoding the position, orientation, and scale of the anchor relative to the world coordinate space of the AR session the anchor is placed in.

World coordinate space in ARKit always follows a right-handed convention, but is oriented based on the session configuration. For details, see Understanding World Tracking.

Discussion

Use the addAnchor: method to begin tracking your custom anchor in an AR session. After you add an environment probe anchor to the scene, ARKit begins generating environment textures for it. To be notified when the anchor has a new environmentTexture, implement the session:didUpdateAnchors:, renderer:didUpdateNode:forAnchor:, or view:didUpdateNode:forAnchor: delegate method.

See Also

Creating Probe Anchors

- initWithName:transform:extent:

Creates a new anchor object with a descriptive name.