Creating an analog stick
By building on the last recipe, we can create a more sophisticated virtual analog stick.
This input method measures vector magnitude as well as direction. We’ve also created a cool looking visual effect for the analog stick.