Attach to component (Edit rotation)

Hello everybody, I would like to select an object in VR and move this. Actually exactly what the AttachToComponent does.
However, I would like to be able to block the rotation direction or the rotation axes.
Does anyone have an idea?

I hope you can help me.