Trying to rotate sceneform 3d model to focus on camera and vertical rotation, it should not change angle based on camera angle, using TransformableNode for rotation with Quaternion
node.localRotation = Quaternion.axisAngle(Vector3(0f,0f,1f), 90f)
Its always rotating no matter what x,y,z value combination I give to try on Vector3, what I expected is like this always in all direction of camera
But its rotating in a direction of camera and getting like this
diff angle
How do I always stick to vertical plane and not change the angle? Helps appreciated!. Thanks
The orientation of anchors by default are points towards the camera. This results in models to be "looking at" the user. However, models on the wall/vertical plane end up rotating arbitrarily. This can be fixed by setting the look direction of the node.
you can introduce an intermediate node that fixes the orientation relative to the anchor node. Children of the intermediate node will then be oriented correctly.