how might you shoot a ray in the direction the gamepad stick is facing? e.g. if I push the joystick up, it shoots directly above the player and if it’s facing left the ray also shoots left and if the joystick is facing diagonal the ray also shoots in that direction.
I’ve been looking online and have not managed to find anything explaining this and would appreciate any insight into this.