World Origin Rebase with local anchors by the Set AR World Origin Location and Rotation function

grimsk 26 Reputation points

I used the Set AR World origin Location and Rotation function to reset the origin to the anchor position,
but the origin does not change, but instead the anchor comes to the origin and sticks to it.
Also, all anchors around the anchor move together around the origin.
The anchor used is a local space anchor. (not azure)
( Worked in Unreal Engine, Holographic window remote play on HoloLens devices Deployed.
Please refer to the code in the attached two pictures in order!
In the drive below, the situation of the problem are recorded in the video
[1]: /api/attachments/264065-앵커-질문-코드1.png?platform=QnA

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
390 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,086 Reputation points Microsoft Vendor

    Hello, Welcome to Microsoft Q&A,

    The issue seems to be that the Open XR plugin in the Unreal engine does not implement SetARWorldOriginLocationAndRotation correctly. Please refer to the description and workaround in SetARWorldOriginLocationandRotation() Not working as expected · Issue #19 · microsoft/MixedRealityToolkit-Unreal · GitHub.

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.