How to ignore parent rotation?

So I am making a vr game and i have a sword in my level that i need to get the world rotation of. When i start the game the sword is at 0,0,0 rotation. When i walk up and grab the sword while keeping it in the same position, the rotation is completely different, how do i get the rotation of the sword relative to the world, regardless of the parent rotation.

How do you grab the sword exactly? Provide more information, please.

If you attach it to some bone or some scene component, then you should check that bone/component rotation and tune sword rotation respectively