Can I block x, y, and z movement but not rotation from HMD/Headset input?

I’m on a project where I would like to make the user not move the camera (x, y, and z axes) in a VR environment even though the person might move the headset in the real world. Rotation should be allowed.
I have searched for some hours already but couldn’t find a working solution.
Maybe someone here can help me. :slight_smile:
Would be greatly appreciated!