Class

ARSkeleton

The interface for the skeleton of a tracked body.

Declaration

class ARSkeleton : NSObject

Overview

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.

Topics

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.

Relationships

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.