The interface for the skeleton of a tracked body.


class ARSkeleton : NSObject


As a collection of joints, this protocol describes the state of a human body whose movements ARKit can track.

The ARSkeleton3D subclass provides you with the position of a tracked body's joints in 3D space, specifically with its jointLocalTransforms and jointModelTransforms properties.

The ARSkeleton2D subclass provides you with the position of a tracked body's joints in 2D space, by way of its jointLandmarks property.


Getting Joint Information

var definition: ARSkeletonDefinition

The particular configuration of joints that define a body's current state.

class ARSkeletonDefinition

The hierarchy of joints and their names.

func isJointTracked(Int) -> Bool

Tells you whether ARKit tracks a joint at a particular index.

struct ARSkeleton.JointName

A name identifier for a joint.


Inherits From

Conforms To

See Also

Getting Joint Information

var skeleton: ARSkeleton2D

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

class ARSkeleton2D

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


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software