//启动加速计 cc.systemEvent.setAccelerometerEnabled(true); //注册加速计 cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.motionHandler, this);
这个加速计的数据是有重力影响的,
Creator似乎没有提供陀螺仪的Api,无法将重力根据翻转角度去掉,,,,,
//启动加速计 cc.systemEvent.setAccelerometerEnabled(true); //注册加速计 cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.motionHandler, this);
这个加速计的数据是有重力影响的,
Creator似乎没有提供陀螺仪的Api,无法将重力根据翻转角度去掉,,,,,