I wanted to know if it is possible to use gyroscope data in such a way that there is no rotation on the z-axis i.e lock z axis for rotation. i tried making the roll value zero but it doesn’t work
I would be grateful if someone can please help me with this.
Yes, it should be possible.
You don’t necessarily have to modify the gyroscope data itself (since it’s read from hardware it’s likely read-only.) To ignore any axis in 3D, you can just modify Camera.rotation.
I tried setting the camera.rotation for trhe z axis to zero and the camera rotation is weird