Hey,
I’m working as part of a Hackathon. We are trying to make an iOS app for blind and visually impaired people. There are no graphics and your phone acts as a controller for the “rocket suit” that they player is in. We are using Unity to make a level to traverse. When the phone tilts forward, the player(which is just a sphere) should roll forward. The same for all the other directions. There are going to be a lot of audio cues as well.
Originally, we used the Unity documentation to build our accelerometer script, but that made the sphere too difficult to control. We tried to write our own. The link below is that code.
[68738-accelerationcontroller.txt|68738]
We are also using two other scripts. This first one is to control the sphere with just arrow keys in testing. We uncheck that when we run the game on a phone.
[68739-ballcontroller.txt|68739]
The third one just links the camera to the sphere. The forums wouldn’t let me post another link, but I don’t think that is causing any problems.
The problem is that when the app is run on an iPhone, the game loads but nothing happens when the phone is tilted.
Please let us know as soon as possible if you know anything. We would really appreciate any help! The project is due tomorrow. Thanks!