How do i change the texture of on object based on its angle relative to another object?

So i want to make a reto 20 shooter where the character has a hand that rotates around his shoulder game and to keep the look of the main character as if it was a single sprite i want to change the texture of the hand each time it rotates 10 degrees aroun the shoulder , because i want it to have a separate colison box , help me please .
As in i want 36 sprites that alternate depending on the angle the hand is pointed , how do i do that ?

If you don’t want to just rotate a single sprite then you’ll need some way of choosing which sprite to show at any given time. Keep in mind that if you did want independant sprites 36 is probably overkill; you can flip on the x and y axis to cut that number down by a factor of 4, then you’d only need to address 9 sprites and flip the axis depending on which target-relative quadrant the pointer is in.