Accelerator working always?

Hi,

i am moving my Character with the Accelerator. The weird thing is sometimes the Accelerator is working and sometimes not and so i can move my character and i can not move him. So if i start the game several times it is working and sometimes not. Somebody else have this weird behiavour?

Are you only seeing the issue through Unity Remote? I had this issue before I used the latest version of Xcode, to build the latest version of Unity Remote. I had to use the 3.0 SDK, also, and I could not get it to work properly on a device running OS 3.1 beta 3.

no i see this behaviour in the game after building it with unity

In my iPhone code (non-Unity) I have a routine that checks the accelerometer readings and resets the accelerometer if it stops sending data. I’ve read that it can stop “working” and that’s the reason I have the code in there. I also witnessed it personally but my code check fixed it. I’m not sure if it’s something Unity does, but it may need to in a future release if it’s not today.

i hope they do it, because if the accelerator is only working sometimes its a real showstopper for my game

The short story - yes, somebody else have experienced similar things

The long story - tuning accelerator, touchscreen and other hardware to work in the way one wants, is a kind of art. Just imagine OS doing its routine when you’re running your game that stresses the CPU and other hardware. And you can’t call iPhone OS RTOS when you’re not talking about phone subsystem. You may expect any behavior including postponing accelerometer’s calls and missing touches. That’s why we expose kFPS and other similar settings for you to demand more juice from iPhone and optimize gaming process.

so what i have to do ? increase the kFPS ? i can not release this game with this “bug”… it will get rejected if the accelerator is only working sometimes

hello? some unity guy can help out? i cant release my game because of that issue.

Please, explain your problem in more details - “sometimes the Accelerator is working and sometimes not” - doesn’t really gives me enough information even to guess.

  • Have you tried to make simplified scenario in order to figure out why accelerometer does not work?
  • How “not working” manifests? Do you get wrong accelerator data or no dat?
  • If accelerator input stops in the middle of the application or if there is no accelerator data from the very start of your app?
  • What OS version you have on your device? Have you tried with various devices, etc