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

How to use getScaleController() and PinchGesture? #5

Description

@Noman5253

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 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions