During Udon development I built a flyable space ship world. There were parts of this world I thought would be helpful to share. These graphs are pretty large and they don’t quite work the same.
The I made the throttle control first, so it’s output is a little rough. I read the rotation angle of the throttle itself and used it to apply force to my space ship. The throttle stays where you leave it when you let go so you don’t need to hold it indefinitely.
The flight stick graph is a bit more advanced. It has two public variables for the angle of the stick that you can use to apply force/torque to a vehicle or object, or run other logic. The flight stick will center itself if you let go.
I hope someone here might find these useful.