SceneView / sceneview-android

SceneView is a 3D and AR Android Composable and View with Google Filament and ARCore. This is a Sceneform replacement in Kotlin
Apache License 2.0
758 stars 151 forks source link

vertically rotate sceneview ar model #422

Closed S1996ouvik closed 1 month ago

S1996ouvik commented 4 months ago

How to rotate 3d objrct vertically in sceneview ar model

devR2id commented 4 months ago

By default you can enable rotation of a modelNode with the isRotationEditable property but I'm not sure it allows you to rotate it vertically.

ModelNode Class

Oficial documentation

Maybe you can achieve this by modifying the onRotate functions of the modelNode so that the Quaternion is done on the Y axis