Want to restrict dragging of anchor nodes on surface plane. I have used Transformable nodes to create an anchor.
You can disable the translation controller on the node to disable moving.
transformableNode.getTranslationController().setEnabled(false);
Most helpful comment
You can disable the translation controller on the node to disable moving.