Include the following details (edit as applicable):
- Issue category: Lightship Maps / Semantic Segmentation / Multiplayer / Real-time Mapping-Depth / ARDK Documentation / Unity Example Package / Sample App aka ‘AR Voyage’ / ARDK Virtual Studio Tools / Developer Tools / Networking / VPS / Scanning Framework
- Device type & OS version: Android / iOS / Other Ex. iPhone 8+ on iOS 13
- Host machine & OS version: Mac / Windows / Linux / Other Ex. Mac on Big Sur x.x
- Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
- Xcode version:
- ARDK version:
- Unity version:
Description of the issue:
How can I get detected plane? I want to spawn an ar object when the plane is detected without touch input
Hi Todd!
I believe I answered your question on Discord already. I’ll paste the response from over there right here.
Have a look at this part of our documentation for how to detect planes: https://lightship.dev/docs/ardk/ar_world_tracking/plane_detection.html
You can see that when Anchors are being added, they are being referenced as an IARPlaneAnchor which has the following fields: https://lightship.dev/docs/ardk/api-documentation/interface_Niantic_ARDK_AR_Anchors_IARPlaneAnchor.html#index-0
A plane anchor contains a Vector3 center and Vector3 extent which an estimation of how long and wide it is. Using these two you can either place content without the need of a user’s touch right in the center of the plane or using the approximations in the extent, place an object somewhere random