Class

ARSkeleton2D

An object that describes where a body's joints are located in the camera feed.

Declaration

@interface ARSkeleton2D : ARSkeleton

Overview

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 landmarkForJointNamed:. 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 jointLandmarks using the resulting index.

Topics

Getting Joint Landmarks

jointLandmarks

The joint landmarks in normalized coordinates.

- landmarkForJointNamed:

Returns the location of a joint with a given name.

Relationships

Inherits From

See Also

Getting Joint Information

skeleton

An object that contains the screen position of a body's joints.

ARSkeleton

The interface for the skeleton of a tracked body.