BodyTracking
A swift package making it easy to implement body tracking in ARKit and RealityKit.
Install / Use
/learn @Reality-Dev/BodyTrackingREADME
BodyTracking
This package enables easy, convenient body tracking in RealityKit.
<p align="center"> <img src="https://img.shields.io/github/v/release/Reality-Dev/BodyTracking?color=orange&display_name=tag&label=SwiftPM&logo=swift&style=plastic"/> <img src="https://img.shields.io/static/v1?label=platform&message=iOS&color=lightgrey&style=plastic"/> <img src="https://img.shields.io/static/v1?label=Swift&message=5.5&color=orange&style=plastic&logo=swift"/> </p>Usage
See this downloadable that includes expert guidance and examples.
What's Included
This package includes code for:
- 3D Body Tracking
- 2D Body Tracking
- 2D Hand Tracking
- 3D Hand Tracking
- 3D Face Tracking
- Face Geometry Morphing
- 3D Eye Tracking
- People Occlusion
For character animation, see RKLoader
import RKLoader
var character: BodyTrackedEntity?
...
func loadCharacter {
Task(priority: .userInitiated) { [weak self] in
let character = try await RKLoader.loadBodyTrackedEntityAsync(named: "character")
self?.character = character
let bodyAnchor = AnchorEntity(.body)
self?.scene.addAnchor(bodyAnchor)
bodyAnchor.addChild(character)
}
}
Requirements
- iOS 15
- A12 Processor or later.
- Swift 5.5
- Xcode 11
Installation
Swift Package Manager
Add the URL of this repository to your Xcode 11+ Project under:
File > Add Packages
https://github.com/Reality-Dev/BodyTracking
Support
If you have questions feel free to message me on GitHub or on Twitter
More
Pull Requests are welcome and encouraged.
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
