This package enables easy, convenient body tracking in RealityKit.
Course coming soon that includes expert guidance and examples.
This package includes code for:
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)
}
}
Add the URL of this repository to your Xcode 11+ Project under:
File > Add Packages
https://github.com/Reality-Dev/BodyTracking
If you have questions feel free to message me on GitHub or on Twitter
Pull Requests are welcome and encouraged.
link |
Stars: 72 |
Last commit: 14 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics