Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

How to use getScaleController() and PinchGesture? #5

Open
Noman5253 opened this issue Nov 1, 2020 · 0 comments
Open

How to use getScaleController() and PinchGesture? #5

Noman5253 opened this issue Nov 1, 2020 · 0 comments

Comments

@Noman5253
Copy link

Hi. I know this is not an issue, but i need some help, in this topic.
I am looking for realtime scaling of objects/models in ARcore. I found that it can be done using getScaleController() and PinchGesture class. I have a TransformableNode and I want to use the above method and class for achieving realtime scalling of model to update model's dimensions at runtime. I checked the documentation already, but it didn't help me.

here is my code

TransformableNode node =
new TransformableNode(arFragment.getTransformationSystem());
node.setParent(anchorNode);
node.setRenderable(modelRenderable);
node.select();

/* After this I want to use PinchGester or PinchGestureListener and
node.getScaleController() to achieve my goal */

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant