I have a 3D sprite model. One of the children of that sprite is a weapon (KinematicBody node). I want to rotate that weapon along the Y axis based on the position of the analog stick. Eg. if the analog stick is pointing to the left I want to point the weapon in the same direction (360 degree coverage). Think games like Enter the Gungeon.
For reference, I'm using an XBox One controller
Input.getjoyaxis(0, JOYAXIS2) is the X axis
Input.getjoyaxis(0, JOYAXIS3) is the Y axis