rot = (stick.y * 90, 0, stick.x * 90) dir = stick.pressed ? down : up output = hand.rotation * rot * dir