Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Reality-Dev/BodyTracking
A swift package making it easy to implement body tracking in ARKit and RealityKit.
https://github.com/Reality-Dev/BodyTracking
Last synced: 2 months ago
JSON representation
A swift package making it easy to implement body tracking in ARKit and RealityKit.
- Host: GitHub
- URL: https://github.com/Reality-Dev/BodyTracking
- Owner: Reality-Dev
- License: other
- Created: 2021-05-20T02:47:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T05:17:16.000Z (8 months ago)
- Last Synced: 2024-10-27T22:43:34.447Z (3 months ago)
- Language: Swift
- Size: 21.8 MB
- Stars: 75
- Watchers: 2
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- Awesome-RealityKit - BodyTracking - This package includes classes that enable easy, convenient body tracking in RealityKit (Projects / Community)
README
# BodyTracking
This package enables easy, convenient body tracking in RealityKit.
## Usage
See [this downloadable](https://www.realityacademy.pro/course/body-tracking) 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 OcclusionFor character animation, see [RKLoader](https://github.com/Reality-Dev/RealityKit-Asset-Loading)
``` swift
import RKLoadervar 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](https://github.com/Reality-Dev) or on [Twitter](https://twitter.com/GMJ4K)
## More
Pull Requests are welcome and encouraged.