Hi klaas,
state.transform.basis = state.transform.basis.rotated(Vector3.UP,the_rotation)
fixed my problem. I leave the mode as Rigid and not Character, because I need the automatic physics rotation in x, and z.
Thank you so much, I've learnd something new, and I think I like Godot more and more, Cheers
Mike