I have a problem when my upper arm bone Z rotation exceeds 180 degrees. It proceeds to go to -180 degrees and as a result of my clamping and -180 being closer to my minimum on my clamp, the bone snaps to my min clamp value, Instead of holding the max clamp value.
If anyone has a solution to this as to or where I can somehow use a rotation angle of 360 degrees instead of 180 please let me know, I will be extremely grateful as I have been struggling with this for a few days now.
Images showing my control rig setup
All Images Explaining Situation
a little more info on what I am trying to achieve.
I am using the control rig to aim my weapon. I have a few aim nodes that aim the right arm ( upper, lower and hand) bones to the desired target.
When aiming all the way to the right my arm should be stretched out and when aiming all the way to the left my upper arm should be clamped at facing forward and my lower arm should proceed to bend and aim the the desired location in addition to my hand. The reason for this is to give a custom feel to the aiming. I also have aim nodes for the neck and head bones so that the character can look at the desired aim location.
I have tried implementing IK using the Basic IK node however I struggled to find a way to both move the IK control the the aim rotation and aim the weapon at that location. The way the aim nodes work the arm bones move to aim at the desires aim location so I thought I could get it to work, however as I explained before I am facing the clamping issue.