Thursday, November 10, 2016

Senior Game Development Blog Week 10

The team has been thinking about trying to use the Wii for the motion controls. So this week I was in charge of trying to get it to work. The Wii sensor bar can be bought with a USB cable. The Wii controller can connect to a computer through a bluetooth dongle. The other programmer found an API so that Unity can interpret Wii controller/sensor input.

Since all it is possible to use the Wii controller/sensor, modifying the code to work using them shouldn't have been difficult. I was wrong. I had a lot of difficulty. First getting the the controller to connect to my pc took longer than I imagined. The software cd that came with the bluetooth dongle actually made the controller not connect.

I took the method of copying code from the API and putting it in the game, then removing all the code that I don't need. I didn't have one line of code, so it wouldn't read any Wii controller inputs. Once I figured that out, everything went smoothly until I worked on the aiming.

In the API the code gives you where the Wii controller is pointing. but it gives it in a Vector2 from 0-1. So I have to find the best way to interpret that into where the guitar will aim.