Fun With Unity: Using an alternate controller to move a cube in Unity
This project used a potentiometer to control a cube in unity. The two programs were connected with serial through the Arduino IDE. The set up for the project was very simple, a potentiometer to move the cube, and a LED connected so we would know when the Arduino was running.
The Potentiometer was outputting to Analog 0, so that way we could control a variable speed, and possibly have the cube stagnate, which couldn't be done with a digital pin. The LED is connected to digital 7, because we only need a high low to make it work.
This project was very easy to complete, since all the instructions were written out for us. It was fun to get to use Unity again, which I have in the past, and also see how even a regular controller can be controlled through Unity, and also an alternate one. Tying in C# to the two connects things very well for me.


Comments
Post a Comment