Level Rotation in VR

Hello, good afternoon, I am trying to rotate the level in augmented reality depending on where an object in the level is looking, my idea is to put an arrow that points to where the north of your map should be and then activate the functionality that I rotated the world, I was using the “Reset orientation and position” node but this takes into account the rotation of the HMD, I was trying to create a formula to add an angle so that it would always take into account the rotation of the arrow but I couldn’t figure it out Still, does anyone have any idea how to solve this problem?

I am using the angles in Z for this function

this is the object I am using as a reference, I want to rotate the world to where this object points