visionOS plane anchor rotation and wall direction are inconsistent

I have a problem with the wall plane detection using visionOS/ARKit:

I am using ARKitSession's PlaneDetectionProvider detection.wall in the space of visionOS. I recorded the position and rotation information of the first detected plane, but found that the rotation value will be facing when the user starts the space. There is a deviation in different directions. That is to say, even if the plane is located on the same wall, the rotation quaternion will be different.

I hope that no matter from which direction the user enters the scan, the real direction of the wall can be correctly obtained so that the virtual content can be accurately aligned with the wall.

I have tried to use anchor.originFromAnchorTransform or Transform.rotation directly, but the rotation value is still affected by the user's initial orientation.

In addition, I would like to know whether the user's initial orientation will affect the location information. If so, please provide a solution.

Thank you!

Answered by DTS Engineer in 856745022

Hello,

This sample code project provides what you need: Placing content on detected planes.

Hello,

This sample code project provides what you need: Placing content on detected planes.

visionOS plane anchor rotation and wall direction are inconsistent
 
 
Q