An object that tracks the movement in 3D space of a body that ARKit recognizes in the camera feed.
- iOS 13.0+Beta
When ARKit recognizes a person in the back camera feed, it calls your delegate's
session: function with
ARBody. A body anchor's
transform position defines the world position of the body's hip joint.
You can also check within the frame's
anchors for a body that ARKit is tracking.
Place a Skeleton on a Surface
Because a body anchor's origin maps to the hip joint, you calculate the current offset of the feet to the hip to place the body's skeleton on a surface. By passing the foot joint index to
joint, you get the foot's offset from skeleton's origin.