“Ever wanted to build your own Unity game, use an accelerometer for the controller or sprinkle a bit of AI in it? Well, here’s how!
I have always been fascinated by Wii controllers and I wanted to build a project based on a controller’s IMU motion. So when I got selected to participate in the Google Summer of Code (GSoC) under TensorFlow, I proposed building a Unity game that could be controlled using a microcontroller. Here’s how you could also build one. Happy Tinkering!
The idea behind the project:
I wanted to build a horror game with huge mountains, trees, fog, and a purple and black theme to set the tone in the game. I also wanted to be able to use the controller to look around alongside using the keyboard for controlling the player’s movements.
This tutorial in a nutshell:
- The first part will explain how to build a Unity Game.
- The second and third parts involve building the controller and integrating it with Unity.
- The fourth part covers how I rebuilt the controller using a different library to avoid gyroscope drift.
- The fifth part talks about some improvements I made to the game to make it more immersive.
- The sixth part explains the current problems with the game and also lists out a few suggestions for taking this idea forward.
- The seventh part is for fun ;)
- The last part concludes the tutorial.”