Skip to content

ARRaycastResult ​

Result from scene.raycastAR() when ray intersects real-world surfaces

Properties ​

anchor read-only ​

  • Type: AnchorData
  • Associated plane anchor if hit was on a tracked plane (nil for estimated surfaces)

target read-only ​

  • Type: string
  • Type of target that was hit: "existingPlaneGeometry", "existingPlaneInfinite", "estimatedPlane"

targetAlignment read-only ​

  • Type: string
  • Surface alignment: "horizontal", "vertical", "any"

worldTransform read-only ​

  • Type: Transform
  • World transform matrix at hit location