Fps player controler with joystick with touch field
public const float FPS_SPEED = 10.0f; public const float MOUSE_SENSITIVITY = 1.0f; public const float TOUCH_SENSITIVITY = 15.0f; public const float JOYSTICK_SENSITIVITY = 15.0f; private const float JOYSTICK_DEAD = 0.1f; private const char TOUCH_FIELD_MOVE = 'L'; private const char TOUCH_FIELD_LOOK = 'R'; public void ProcessInputs() { var x = 0f; var y = 0f; var z = 0f; if (Input.GetKey(KeyCode.W)) { z += 1; } if (Input.GetKey(KeyCode.S)) { z -= 1; } if (Input.GetKey(KeyCode.A)) { x -= 1; } if (Input.GetKey(KeyCode.D))