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

Translation along the planes #386

Open vs-dos opened 6 years ago

vs-dos commented 6 years ago

Hello, According to the TranslationController the default node translation is allowed only when the trackable is the plane trackable.In this case nodes may get stuck when there is no hitResults or hitResult trackable is not a plane instance. I also tried to move the nodes by the points, but it was extremely unstable and they could be easily placed in the air. So is there any guides how to move nodes without any stucking? I found perfect implementation of this feature in Google Camera app. Is it possible to do like in Google Camera?

malik-at-work commented 5 years ago

This would be referring to the code at https://github.com/google-ar/sceneform-android-sdk/blob/ae9d3fa420629dad4fbd3cb975328180bc1c2054/sceneformux/ux/src/main/java/com/google/ar/sceneform/ux/TranslationController.java#L136

We don't expose any other style of movement, but I could see making my own TranslationController with different rules.