googlesamples / sceneform-samples

Sceneform samples for 3D rendering for ARCore in Java.
https://developers.google.com/ar/develop/java/sceneform/
Apache License 2.0
87 stars 22 forks source link

How to use getScaleController() and PinchGesture? #5

Open Noman5253 opened 3 years ago

Noman5253 commented 3 years ago

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 /