- Home /
Accelometer controls for iOS and android
Hello, Im working on a simple ball game for mobile devices (so it should work on both, iOS and android). But ive got no idea how to make controls using the accelometer.
Some info on what i need:
device is hold horizontal while playing
move the ball forward and back when leaning the device forward or back
move the camera left or right with leaning the device left or right
(like in the game Aerox, heres a video of what id like to have: http://www.youtube.com/watch?v=O7sAhJ7W0F4
Any help is much appreciated :)
Answer by crazy_boy_02 · Apr 02, 2013 at 04:00 AM
this link should help you get started
http://docs.unity3d.com/Documentation/Manual/Input.html
just read the accelerometer section.
Answer by ShinyTaco · Apr 02, 2013 at 04:02 AM
Check out the free roll a ball scene in the asset store too.
Your answer
Follow this Question
Related Questions
Control the camera with a half of the touch screen 0 Answers
How do you map touch to one of the input axes? 1 Answer
Android Tilt controls help 1 Answer
Question about IOS controls 0 Answers
RPG style controls for iOS/Android 0 Answers