From the course: Advanced iOS App Development: Core Motion

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up the project

Set up the project - iOS Tutorial

From the course: Advanced iOS App Development: Core Motion

Start my 1-month free trial

Set up the project

- [Narrator] You've worked with a high level core motion API. At this highest level of core motion you have a lot that's easily accessible in a class. You don't have access to the sensors directly but do get the bottom line data you want such steps, distance, and pace. Pedometer's great for fitness applications but in other applications there's not much you can do with it. For other applications, you need more access to the sensors. For the next few lessons we'll dive deeper into the use of sensors using the core motion manager to get acceleration, rotation rate, and attitude. Core motion is most often used in games and fitness apps. A baseball or tennis game would require complex motions which would be difficult to explain in a course of this scope. I'll use something that both game developers and fitness developers can use with relatively easy motions to track, fencing and sword fighting. I'll have the phone detect a thrust attack using the accelerometer and a parry or block also…

Contents