Calibration of Accelerometer
joebear218
Member Posts: 33
Does anyone know if there is a wiki out there that explains how a user can recalibrate the accelerometer from in game?
Comments
It's not too difficult, just requires a few attributes. I created two attributes called calibratedX and calibratedY.
I then have a button called calibrate that has a rule on it, when touched it sets game.calibratedX to game.accelerometerX. Same thing for calibratedY.
then just update your move rules to use those values instead of the stock -0.1 or 0.1
I'll try and move my code into a sample project tonight.
wiki page:
http://gamesalad.com/wiki/how_tos:gsc_iphone_controls#how_do_i_make_use_of_the_iphone_ipod_touch_accelerometer
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left