Swiftpack.co - Reality-Dev/BodyTracking as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Reality-Dev.
Reality-Dev/BodyTracking 1.1.0
A swift package making it easy to implement body tracking in ARKit and RealityKit.
⭐️ 31
🕓 34 weeks ago
iOS
.package(url: "https://github.com/Reality-Dev/BodyTracking.git", from: "1.1.0")

BodyTracking

This package includes classes that enable easy, convenient body tracking in RealityKit.

What's Included

This package includes code for:

  • 3D Body Tracking
  • 2D Body Tracking
  • 2D Hand Tracking
  • 3D Hand Tracking
  • 3D Face Tracking
  • 3D Eye Tracking
  • People Occlusion
  • Loading a BodyTrackedEntity (for 3D character animation)

Requirements

  • iOS 13 or macOS 10.15
  • Swift 5.2
  • Xcode 11
  • A12 Processor or later.

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

Usage

Add import BodyTracking to the top of your swift file to start.

See the example project for guidance.

While using BodyEntity3D you can access the joint transforms relative to the root/hip joint each frame by using jointModelTransform(for:). For example, you could find the right leg's transform like this:

        jointModelTransform(for: .right_leg_joint)

Support

If you have questions feel free to message me on GitHub or on Twitter

More

Pull Requests are welcome and encouraged.

GitHub

link
Stars: 31
Last commit: 34 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Initial Release
1 year ago

Example project works.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics