It looks like you're new here. If you want to get involved, click one of these buttons!
***edit: SOLVED !**
hello, im working on my first game right now, for mobile .
i want the right joystick to be the aim, and when you pull it to its limits ,you trigger the shot action .
i know the joystick works on -1 +1 values for x and y .
(i use an asset store joystick https://assetstore.unity.com/packages/tools/input-management/joystick-pack-107631)
but i dont understand how to calculate the bounds of the joystick ,
ive tried to do it like this , the shootzone is set to 0.8f but i get dead zones where it should work but the x and y values are too low , north east west and south directions are fine , you can tell by the aim assist line color (red is shooting, white is not)
and here you can see the stick is in "shooting" position but the values dont get to 0.8 because my math is wrong and i dont know how to fix it :)
so in other words NE NW SE & SW directions are the problem .