Im trying to do targeting for my 2d platformer. Thats how it looks and works for the mouse:
System => anglediff(PlayerHand.HandAngle, angle(PlayerHand.X, PlayerHand.Y, Mouse.X, Mouse.Y)) <Less Than 20
Machinegun => Set Angle Toward (Mouse.X, Mouse.Y)
My question is, how do I translate mouse coordinates into right joystick coordinates and get the same result?