How do I rotate a camera on device rotation?
This is what I tried to do:
float[] f = new float[16];
Gdx.input.getRotationMatrix( f );
Matrix4 m = new Matrix4( f );
m = m.scl( 0.01f );
cam.rotate( m );
cam.update();
The camera rotates waaaay too fast, but probably also not correctly. Any ideas?