Physical controller for Unity – Week 04

First, I tested Arduino and Unity to see if they worked well with the OSC class example last week. It works well.

https://github.com/dombarrett/Fast-Fun

https://github.com/dombarrett/Fast-Fun/blob/main/FF_simple_WiFi-OSC_Example.ino

but it seemed that the arduinoOSC code is working in IoT33 but not working in Uno.

  • circuit

After that, I decided to test my VR project’s neuron blender 3d model by exporting it to Unity as a ‘.fbx’.

I wanted to move my neuron model left and right with two push buttons, referring to the OSC class examples of Arduino and Unity, but I have not yet figured out the code for it. I’m still working on that.

So I just used “SerialPort sp = new SerialPort(“/dev/tty.usbmodem14201″, 9600);” in Unity and controlled the left and right position of my 3d model with two push buttons and two LEDs (yellow LED = left, red LED = right).