Apple gyroscope sample code

后端 未结 4 855
甜味超标
甜味超标 2020-11-28 19:51

I am planning to develop an gyroscope based project like rotating an opengl texture using gyroscope data, is there any sample code released from apple about

4条回答
  •  旧巷少年郎
    2020-11-28 20:11

    CoreMotion is how to get gyroscope data. Look at CMGyrodata for raw data or use the DeviceMotion attitude and rotation rate properties.

    I'd recommend watching the 'Device Motion' WWDC session if you're a registered apple developer.

提交回复
热议问题