:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/../../GodotApplePlugins/doc_classes/ARBodyAnchor.xml. .. _class_ARBodyAnchor: ARBodyAnchor ============ **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Represents a tracked human body with skeletal joint data. .. rst-class:: classref-introduction-group Description ----------- Provides the root pose, tracking state, estimated scale factor, and optional :ref:`ARBodySkeleton` for a detected body. Delivered through anchor signals when using :ref:`ARSession.run_body_tracking()`. **iOS only.** On visionOS and macOS, this type exists for API consistency but is never populated with real data. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`float` | :ref:`estimated_scale_factor` | ``1.0`` | +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`String` | :ref:`identifier` | ``""`` | +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`bool` | :ref:`is_tracked` | ``false`` | +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`ARBodySkeleton` | :ref:`skeleton` | ``null`` | +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ | :ref:`Transform3D` | :ref:`transform` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` | +---------------------------------------------+-----------------------------------------------------------------------------------+-----------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_ARBodyAnchor_property_estimated_scale_factor: .. rst-class:: classref-property :ref:`float` **estimated_scale_factor** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_estimated_scale_factor**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_estimated_scale_factor**\ (\ ) Estimated scale multiplier for the detected body relative to the reference skeleton. .. rst-class:: classref-item-separator ---- .. _class_ARBodyAnchor_property_identifier: .. rst-class:: classref-property :ref:`String` **identifier** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_identifier**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_identifier**\ (\ ) A unique identifier for this body anchor. .. rst-class:: classref-item-separator ---- .. _class_ARBodyAnchor_property_is_tracked: .. rst-class:: classref-property :ref:`bool` **is_tracked** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_is_tracked**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_is_tracked**\ (\ ) Whether the body is currently tracked with reliable pose data. .. rst-class:: classref-item-separator ---- .. _class_ARBodyAnchor_property_skeleton: .. rst-class:: classref-property :ref:`ARBodySkeleton` **skeleton** = ``null`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_skeleton**\ (\ value\: :ref:`ARBodySkeleton`\ ) - :ref:`ARBodySkeleton` **get_skeleton**\ (\ ) The tracked body skeleton, if available. .. rst-class:: classref-item-separator ---- .. _class_ARBodyAnchor_property_transform: .. rst-class:: classref-property :ref:`Transform3D` **transform** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_transform**\ (\ value\: :ref:`Transform3D`\ ) - :ref:`Transform3D` **get_transform**\ (\ ) The root transform of the body in world space. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`