ARBodyAnchor

Inherits: RefCounted < Object

Represents a tracked human body with skeletal joint data.

Description

Provides the root pose, tracking state, estimated scale factor, and optional ARBodySkeleton for a detected body. Delivered through anchor signals when using ARSession.run_body_tracking(). iOS only. On visionOS and macOS, this type exists for API consistency but is never populated with real data.

Properties

float

estimated_scale_factor

1.0

String

identifier

""

bool

is_tracked

false

ARBodySkeleton

skeleton

null

Transform3D

transform

Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)


Property Descriptions

float estimated_scale_factor = 1.0 🔗

  • void set_estimated_scale_factor(value: float)

  • float get_estimated_scale_factor()

Estimated scale multiplier for the detected body relative to the reference skeleton.


String identifier = "" 🔗

  • void set_identifier(value: String)

  • String get_identifier()

A unique identifier for this body anchor.


bool is_tracked = false 🔗

  • void set_is_tracked(value: bool)

  • bool get_is_tracked()

Whether the body is currently tracked with reliable pose data.


ARBodySkeleton skeleton = null 🔗

The tracked body skeleton, if available.


Transform3D transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) 🔗

  • void set_transform(value: Transform3D)

  • Transform3D get_transform()

The root transform of the body in world space.