Sceneform-android-sdk: How to disable dragging of AR object(Anchor nodes) in from one location to another on surface plane

Created on 11 Jan 2019  路  1Comment  路  Source: google-ar/sceneform-android-sdk

Want to restrict dragging of anchor nodes on surface plane. I have used Transformable nodes to create an anchor.

Most helpful comment

You can disable the translation controller on the node to disable moving.

transformableNode.getTranslationController().setEnabled(false);

>All comments

You can disable the translation controller on the node to disable moving.

transformableNode.getTranslationController().setEnabled(false);
Was this page helpful?
0 / 5 - 0 ratings