Hi,
I am new to ARkit and having a question about how to place a virtual content on top a detected reference object?
I read this from the Apple's ARkit dev doc about ARObjectAnchor: "To place virtual 3D content that matches the position or size of the detected object, use the anchor's inherited
transform
property together with the center
and extent
of the anchor's referenceObject
."For example, in my code I got the following of a ARobjectAnchor for a referenobject.
Anchor transform: float4(-0.005025277, -0.19507483, -0.092598796, 1.0)
Refobj center: float3(1.2099743e-05, 0.036919687, -0.0046209693)
Refobj extent: float3(0.089705944, 0.10785053, 0.09547174)
Could anyone offer some help about how get the top surface of the detected object in my code? Thanks.
- Hui