Code rotate the camera?

Could you help me?

I’m working on a fps style game, could you give me the code to rotate the camera? C#

What have you tried so far? How familiar are you with godot’s input system?

1 Like

I tried the following code

Float looAngle = 90.0f;

Float mousesensitivity = 2.0f;

Vectors 2 mouseDelta = New vectors 2();

Public override void _input( inputEvent ev )
{
if( ev is inputEventmouseMotion eventmouse )
{
Mouse Delta = eventMouse.Relative;
}

}

Public override void _process(float Delta)

It shows me an error from the process function when I apply the float Delta parameter, When I try with Double Delta no error, it’s just part of the code