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.
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.