google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

In Android Ar Core how to restrict dragging of objects(Anchor nodes) from one location to another location and zoom in/zoom out ? #428

Open nagesh1044 opened 5 years ago

nagesh1044 commented 5 years ago

Originally posted by @nagesh1044 in https://github.com/google-ar/sceneform-android-sdk/issues/403#issuecomment-437297817

stewe93 commented 5 years ago

If I understand your problem well, instead of TransformableNode you should use a simple Node.

nagesh1044 commented 5 years ago

If I understand your problem well, instead of TransformableNode you should use a simple Node.

Thanks, but how to set minimum and maximum scale for 'Node'.

nagesh1044 commented 5 years ago

How can we display text on the Anchor node.

nagesh1044 commented 5 years ago

Is there any example for ViewRenderable in ARcore?

stewe93 commented 5 years ago

If I understand your problem well, instead of TransformableNode you should use a simple Node.

Thanks, but how to set minimum and maximum scale for 'Node'.

Create a custom TransformableNode if you want to transform functions too and override the onupdate method, maybe this will do the job for you.