My co-worker, and web dev ninja, Stacey Mulcahy (@bitchwhocodes) put together a great series of blog posts on how to use Spacebrew ( a web sockets solution built on Node that enables you to create interactive spaces with several clients ) with Unity3d and Arduino & Processing. This is the beginning / start of next week’s bit where she shows how to build your own DDR mat and hook it into Unity3d, Arduino, and Processing.
And straight from the source:
This tutorial basically shows you how to send and receive messages to and from Unity – to and from an Arduino that has a simple circuit that will blink an LED. It goes through a) installing a spacebrew server locally, b) hooking Unity to use it with the sdk, c) the Arduino circuit and Processing code and d) connecting them all.
http://thebitchwhocodes.com/2014/07/29/internet-of-things-with-unity3d-arduino-and-spacebrew-part-1/ ( Setting up a local spacebrew sever )
http://thebitchwhocodes.com/2014/07/29/internet-of-things-with-unity3d-arduino-and-spacebrew-part-2/ ( Getting Unity3d to work with Spacebrew )
http://thebitchwhocodes.com/2014/07/29/internet-of-things-with-unity3d-arduino-and-spacebrew-part-3/ ( Getting Arduino & Processing up and running – and hooked in )
Powerpoint deck with steps in case that is your jam