You could approach it like this, assuming z axis is the forward axis:
var forwardSpeed = 2.0
var rotationSpeed = .1
func _physics_process(delta):
rotate_y(Input.get_joy_axis(0, JOY_AXIS_LEFT_X) * rotationSpeed)
velocity = global_transform.basis.z * forwardSpeed
move_and_slide()