Limited pinch zoom in/out. #130
Unanswered
ShankarKakumani
asked this question in
Q&A
Replies: 2 comments
-
Please send your questions in the Discussions/Q&A section and mark it as answered when it's the case |
Beta Was this translation helpful? Give feedback.
0 replies
-
One way is to scale the Vector3 newScale = new Vector3(scaling, scaling, scaling);
if (node != null) {
node.setLocalScale(newScale);
} You can use this for example to implement a distance dependent scaling of your model. Simple calculate the distance between your camera and the To change the scaling with a gesture you have to wrap your node = new Node();
node.setRenderable(renderable);
transformableNode = new TransformableNode(arFragment.getTransformationSystem());
transformableNode.setParent(anchorNode);
node.setParent(transformableNode); I think that should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to zoom out till the model is very small. or like to increase size.
Or is there a way to set the size for models manually?
Beta Was this translation helpful? Give feedback.
All reactions