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 2.0.31
A swift package making it easy to implement body tracking in ARKit and RealityKit.
⭐️ 72
🕓 15 weeks ago
iOS
.package(url: "https://github.com/Reality-Dev/BodyTracking.git", from: "2.0.31")

BodyTracking

This package enables easy, convenient body tracking in RealityKit.

Usage

Course coming soon 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.

GitHub

link
Stars: 72
Last commit: 14 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Face Morphing + ECS Improvements
16 weeks ago

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