This package includes classes that enable easy, convenient body tracking in RealityKit.
This package includes code for:
Add the URL of this repository to your Xcode 11+ Project under:
File > Add Packages
https://github.com/Reality-Dev/BodyTracking
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)
If you have questions feel free to message me on GitHub or on Twitter
Pull Requests are welcome and encouraged.