Anthony,
I try to rotate the cam manually.
For this I used the function RotateFromVector(). However, I am a bit confused about the parameters and am looking for an example of how to call the function correctly.
I get -1 or +1 from the keyBindings, depending on where I want to rotate to, and have passed some values as parameters as a test. Unfortunately the camera does not rotate at all.
var rotate = keyBindings.Camera.Rotate.ReadValue<float>();
if (rotate != 0)
{
//cameraPerspective.RotateFromVector(Vector2.one * rotate);
cameraPerspective.RotateFromVector(Vector2.one * 90);
}
Thanks