Hello, Welcome to Microsoft Q&A,
SetARWorldOriginLocationAndRotation is right, but currently Unreal Engine's Open XR plugin has a known issue with the implementation of this API, 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.