如何在纵向或纵向中使用捏合手势专门缩放模型?

How to specifically scale model using pinch gesture in either lengthwise of bredthwise?

我有一个模型。我只想纵向向上或向下缩放,而不是在每个轴上。 我怎样才能调整到 scaleController 和捏手势来做到这一点??

您可以使用 - public class TransformableNode 可以使用 TransformationSystem 中的手势选择、平移、旋转和缩放的节点。 PL。请参阅 google 开发人员 link,其中解释了如何使用这些 API https://developers.google.com/ar/reference/java/sceneform/reference/com/google/ar/sceneform/ux/TransformableNode