Help with Motion Data

I’m using the modern runtime (4.0) and I’m having a difficult time figuring out how to access accelerometer data.

Use to be Gravity.x and Gravity.y returned the current accelerometer data however, that appears to be different in 4.0 and I can’t find a reliable way to probe this data.

Is there a definitive way to access raw accelerometer data via the objc bridge?

@Kizik - need to contact @sim or @jfperusse - couldn’t find any Codea info on it but found an apple related post of a C routine which may help:

Apple

› documentation › coremotion › getting_raw_accelerometer_events
Getting raw accelerometer events | Apple Developer Documentation

1 Like

I confirm it doesn’t seem to be implemented yet for modern, but I added this to our roadmap. It should be fairly easy to add this back to modern.

1 Like

Thank you for looking into it @jfperusse

1 Like