Published On Aug 11, 2020
2022 UPDATED TUTORIAL: • Apple Motion Capture Using SwiftUI, A...
** Access Source Code on Patreon: / 60601004 **
In this video, I show you step-by-step how to develop an AR Body Tracking application using ARKit’s Motion Capture technology, RealityKit and SwiftUI.
Like = This Video Was Helpful
Comment = Questions and Suggestions
Subscribe = More Videos Please!
***
Table of Contents:
00:00 - Introduction
02:00 - Step 1: Import frameworks
02:59 - Step 2: Create SwiftUI ContentView and set it as the LiveView
04:00 - Step 3: Create ARViewContainer
05:54 - Step 4a: Configure ARView for body tracking
07:44 - Step 4b: Implement ARSession didUpdate anchors delegate method
15:45 - Step 5: Create BodySkeleton entity to visualize joints
17:09 - Step 6: Create an Entity for each jointName
22:43 - Step 7: Create a helper method to create a sphere-based entity with specified radius and color for each joint
24:58 - Step 8: Create a method to update the position and orientation of each jointEntity
30:04 - Step 9: Create global variables for the BodySkeleton and its AnchorEntity
31:22 - Step 10: Add bodySkeletonAnchor to the scene
32:04 - Step 11: When a bodyAnchor is updated, create or update the bodySkeleton
35:20 - Step 12: Set color and size based on specific jointName
***
Links
Bringing People into AR (WWDC19): https://developer.apple.com/videos/pl...
New to RealityKit? Start Here: • AR for iOS Developers
#BodyTracking #RealityKit #SwiftUI