阅读背景:

使用CMMotionManager快速配置加速度计跟踪

来源:互联网 

I've been looking around for a way to add an offset to the way the accelerometer tracks movement of the player in my game. In my game, you control the player character by tilting the phone forwards and backwards. This is translated by the accelerometer to x and y coordinates on screen. unfortunately, this means in order to stop the character from constantly being at the bottom of the screen, you have to hold the phone flat. Which isn't very comfortable for players. I've been looking around for a way to add an of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: