Posted October 10, 2019 by Tom Newsome
Next, I searched for the easiest way to provide rotational input into Unity. I'm using a Elegoo board, a optical rotary encoder, and the Uduino plugin for unity to simplify Arduino input. As the encoder rotates, it sends pulses that are offset from each other, and the board interprets those impulses. It outputs a rotational value to Unity, which gets updated every frame and uses the difference of values between each frame to determine rotational acceleration.