An object that describes where a body's joints are located in the camera feed.
- iOS 13.0+
ARSkeleton2D provides you with a 2D body's joints in a flat hierarchy so you can access them efficiently. The joint locations are normalized within the range [0..1] in the coordinate space of the current frame's camera image, where 0 is the upper left, and 1 is the bottom right.
To access a skeleton's joints by name, you use
landmark(for. To access a named joint by index (for example, for performance reasons), you query the definition for the named joint index using
index(for:), then access
joint using the resulting index.