Class

ARSkeleton3D

The skeleton of a human body that ARKit tracks in 3D space.

Declaration

class ARSkeleton3D : ARSkeleton

Overview

An ARBodyAnchor contains one instance of this ARSkeleton subclass to provide its joint positions in 3D space. The jointLocalTransforms property describes a joint's 3D offset from its parent joint. The jointModelTransforms property describes a joint's 3D offset from the body anchor's transform.

Topics

Getting a Joint's Pose

var jointLocalTransforms: [simd_float4x4]

The local space transforms for each joint.

var jointModelTransforms: [simd_float4x4]

The model space transforms for each joint.

func localTransform(for: ARSkeleton.JointName) -> simd_float4x4?

Returns the local transform for a joint with a given name.

func modelTransform(for: ARSkeleton.JointName) -> simd_float4x4?

Returns the model transform for a joint with a given name.

Relationships

Inherits From

Conforms To

See Also

Interpreting 3D Motion

var skeleton: ARSkeleton3D

The tracked body in 3D.

class ARSkeleton

The interface for the skeleton of a tracked body.