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

3D model rotation using Sceneform (feature request) #620

Closed sergeevsnaappy closed 5 years ago

sergeevsnaappy commented 5 years ago

I would like to request a new rotation parameter for 3d models open for manual editing in SFA and SFB files. Now it takes a lot of effort to change model rotation using coding, which does not seem optimal. Applies especially for animated models.

Saw people struggling with same problem - https://stackoverflow.com/questions/51526039/problematically-rotate-3d-model-using-sceneform-ecosystem

tpsiaki commented 5 years ago

Currently the best option is to rotate assets in code as was suggested on stack overflow:

node.setLocalRotation(Quaternion.axisAngle(new Vector3(1f, 0, 0), 90f));

chnouman commented 5 years ago

@tpsiaki how can I integrate it with swipe gesture?