123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980 |
- :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/doc/classes/Skeleton3D.xml.
- .. _class_Skeleton3D:
- Skeleton3D
- ==========
- **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- A node containing a bone hierarchy, used to create a 3D skeletal animation.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- **Skeleton3D** provides an interface for managing a hierarchy of bones, including pose, rest and animation (see :ref:`Animation<class_Animation>`). It can also use ragdoll physics.
- The overall transform of a bone with respect to the skeleton is determined by bone pose. Bone rest defines the initial transform of the bone pose.
- Note that "global pose" below refers to the overall transform of the bone with respect to skeleton, so it is not the actual global/world transform of the bone.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`animate_physical_bones<class_Skeleton3D_property_animate_physical_bones>` | ``true`` |
- +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
- | :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` | :ref:`modifier_callback_mode_process<class_Skeleton3D_property_modifier_callback_mode_process>` | ``1`` |
- +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`motion_scale<class_Skeleton3D_property_motion_scale>` | ``1.0`` |
- +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`show_rest_only<class_Skeleton3D_property_show_rest_only>` | ``false`` |
- +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`add_bone<class_Skeleton3D_method_add_bone>`\ (\ name\: :ref:`String<class_String>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clear_bones<class_Skeleton3D_method_clear_bones>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clear_bones_global_pose_override<class_Skeleton3D_method_clear_bones_global_pose_override>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Skin<class_Skin>` | :ref:`create_skin_from_rest_transforms<class_Skeleton3D_method_create_skin_from_rest_transforms>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`find_bone<class_Skeleton3D_method_find_bone>`\ (\ name\: :ref:`String<class_String>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`force_update_all_bone_transforms<class_Skeleton3D_method_force_update_all_bone_transforms>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`force_update_bone_child_transform<class_Skeleton3D_method_force_update_bone_child_transform>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_bone_children<class_Skeleton3D_method_get_bone_children>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_bone_count<class_Skeleton3D_method_get_bone_count>`\ (\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_pose<class_Skeleton3D_method_get_bone_global_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_pose_no_override<class_Skeleton3D_method_get_bone_global_pose_no_override>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_pose_override<class_Skeleton3D_method_get_bone_global_pose_override>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_rest<class_Skeleton3D_method_get_bone_global_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`get_bone_meta<class_Skeleton3D_method_get_bone_meta>`\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] | :ref:`get_bone_meta_list<class_Skeleton3D_method_get_bone_meta_list>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_bone_name<class_Skeleton3D_method_get_bone_name>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_bone_parent<class_Skeleton3D_method_get_bone_parent>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_pose<class_Skeleton3D_method_get_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`get_bone_pose_position<class_Skeleton3D_method_get_bone_pose_position>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Quaternion<class_Quaternion>` | :ref:`get_bone_pose_rotation<class_Skeleton3D_method_get_bone_pose_rotation>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector3<class_Vector3>` | :ref:`get_bone_pose_scale<class_Skeleton3D_method_get_bone_pose_scale>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_rest<class_Skeleton3D_method_get_bone_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`StringName<class_StringName>` | :ref:`get_concatenated_bone_names<class_Skeleton3D_method_get_concatenated_bone_names>`\ (\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_parentless_bones<class_Skeleton3D_method_get_parentless_bones>`\ (\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_version<class_Skeleton3D_method_get_version>`\ (\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_bone_meta<class_Skeleton3D_method_has_bone_meta>`\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_bone_enabled<class_Skeleton3D_method_is_bone_enabled>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`localize_rests<class_Skeleton3D_method_localize_rests>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`physical_bones_add_collision_exception<class_Skeleton3D_method_physical_bones_add_collision_exception>`\ (\ exception\: :ref:`RID<class_RID>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`physical_bones_remove_collision_exception<class_Skeleton3D_method_physical_bones_remove_collision_exception>`\ (\ exception\: :ref:`RID<class_RID>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`physical_bones_start_simulation<class_Skeleton3D_method_physical_bones_start_simulation>`\ (\ bones\: :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] = []\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`physical_bones_stop_simulation<class_Skeleton3D_method_physical_bones_stop_simulation>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`SkinReference<class_SkinReference>` | :ref:`register_skin<class_Skeleton3D_method_register_skin>`\ (\ skin\: :ref:`Skin<class_Skin>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`reset_bone_pose<class_Skeleton3D_method_reset_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`reset_bone_poses<class_Skeleton3D_method_reset_bone_poses>`\ (\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_enabled<class_Skeleton3D_method_set_bone_enabled>`\ (\ bone_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>` = true\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_global_pose<class_Skeleton3D_method_set_bone_global_pose>`\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_global_pose_override<class_Skeleton3D_method_set_bone_global_pose_override>`\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`, amount\: :ref:`float<class_float>`, persistent\: :ref:`bool<class_bool>` = false\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_meta<class_Skeleton3D_method_set_bone_meta>`\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_name<class_Skeleton3D_method_set_bone_name>`\ (\ bone_idx\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_parent<class_Skeleton3D_method_set_bone_parent>`\ (\ bone_idx\: :ref:`int<class_int>`, parent_idx\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_pose<class_Skeleton3D_method_set_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_pose_position<class_Skeleton3D_method_set_bone_pose_position>`\ (\ bone_idx\: :ref:`int<class_int>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_pose_rotation<class_Skeleton3D_method_set_bone_pose_rotation>`\ (\ bone_idx\: :ref:`int<class_int>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_pose_scale<class_Skeleton3D_method_set_bone_pose_scale>`\ (\ bone_idx\: :ref:`int<class_int>`, scale\: :ref:`Vector3<class_Vector3>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_bone_rest<class_Skeleton3D_method_set_bone_rest>`\ (\ bone_idx\: :ref:`int<class_int>`, rest\: :ref:`Transform3D<class_Transform3D>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`unparent_bone_and_rest<class_Skeleton3D_method_unparent_bone_and_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Signals
- -------
- .. _class_Skeleton3D_signal_bone_enabled_changed:
- .. rst-class:: classref-signal
- **bone_enabled_changed**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_Skeleton3D_signal_bone_enabled_changed>`
- Emitted when the bone at ``bone_idx`` is toggled with :ref:`set_bone_enabled<class_Skeleton3D_method_set_bone_enabled>`. Use :ref:`is_bone_enabled<class_Skeleton3D_method_is_bone_enabled>` to check the new value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_signal_bone_list_changed:
- .. rst-class:: classref-signal
- **bone_list_changed**\ (\ ) :ref:`๐<class_Skeleton3D_signal_bone_list_changed>`
- .. container:: contribute
- There is currently no description for this signal. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_signal_pose_updated:
- .. rst-class:: classref-signal
- **pose_updated**\ (\ ) :ref:`๐<class_Skeleton3D_signal_pose_updated>`
- Emitted when the pose is updated.
- \ **Note:** During the update process, this signal is not fired, so modification by :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` is not detected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_signal_show_rest_only_changed:
- .. rst-class:: classref-signal
- **show_rest_only_changed**\ (\ ) :ref:`๐<class_Skeleton3D_signal_show_rest_only_changed>`
- Emitted when the value of :ref:`show_rest_only<class_Skeleton3D_property_show_rest_only>` changes.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_signal_skeleton_updated:
- .. rst-class:: classref-signal
- **skeleton_updated**\ (\ ) :ref:`๐<class_Skeleton3D_signal_skeleton_updated>`
- Emitted when the final pose has been calculated will be applied to the skin in the update process.
- This means that all :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` processing is complete. In order to detect the completion of the processing of each :ref:`SkeletonModifier3D<class_SkeletonModifier3D>`, use :ref:`SkeletonModifier3D.modification_processed<class_SkeletonModifier3D_signal_modification_processed>`.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_Skeleton3D_ModifierCallbackModeProcess:
- .. rst-class:: classref-enumeration
- enum **ModifierCallbackModeProcess**: :ref:`๐<enum_Skeleton3D_ModifierCallbackModeProcess>`
- .. _class_Skeleton3D_constant_MODIFIER_CALLBACK_MODE_PROCESS_PHYSICS:
- .. rst-class:: classref-enumeration-constant
- :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **MODIFIER_CALLBACK_MODE_PROCESS_PHYSICS** = ``0``
- Set a flag to process modification during physics frames (see :ref:`Node.NOTIFICATION_INTERNAL_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PHYSICS_PROCESS>`).
- .. _class_Skeleton3D_constant_MODIFIER_CALLBACK_MODE_PROCESS_IDLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **MODIFIER_CALLBACK_MODE_PROCESS_IDLE** = ``1``
- Set a flag to process modification during process frames (see :ref:`Node.NOTIFICATION_INTERNAL_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PROCESS>`).
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Constants
- ---------
- .. _class_Skeleton3D_constant_NOTIFICATION_UPDATE_SKELETON:
- .. rst-class:: classref-constant
- **NOTIFICATION_UPDATE_SKELETON** = ``50`` :ref:`๐<class_Skeleton3D_constant_NOTIFICATION_UPDATE_SKELETON>`
- Notification received when this skeleton's pose needs to be updated. In that case, this is called only once per frame in a deferred process.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_Skeleton3D_property_animate_physical_bones:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **animate_physical_bones** = ``true`` :ref:`๐<class_Skeleton3D_property_animate_physical_bones>`
- .. rst-class:: classref-property-setget
- - |void| **set_animate_physical_bones**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_animate_physical_bones**\ (\ )
- **Deprecated:** This property may be changed or removed in future versions.
- If you follow the recommended workflow and explicitly have :ref:`PhysicalBoneSimulator3D<class_PhysicalBoneSimulator3D>` as a child of **Skeleton3D**, you can control whether it is affected by raycasting without running :ref:`physical_bones_start_simulation<class_Skeleton3D_method_physical_bones_start_simulation>`, by its :ref:`SkeletonModifier3D.active<class_SkeletonModifier3D_property_active>`.
- However, for old (deprecated) configurations, **Skeleton3D** has an internal virtual :ref:`PhysicalBoneSimulator3D<class_PhysicalBoneSimulator3D>` for compatibility. This property controls the internal virtual :ref:`PhysicalBoneSimulator3D<class_PhysicalBoneSimulator3D>`'s :ref:`SkeletonModifier3D.active<class_SkeletonModifier3D_property_active>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_property_modifier_callback_mode_process:
- .. rst-class:: classref-property
- :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **modifier_callback_mode_process** = ``1`` :ref:`๐<class_Skeleton3D_property_modifier_callback_mode_process>`
- .. rst-class:: classref-property-setget
- - |void| **set_modifier_callback_mode_process**\ (\ value\: :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>`\ )
- - :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **get_modifier_callback_mode_process**\ (\ )
- Sets the processing timing for the Modifier.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_property_motion_scale:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **motion_scale** = ``1.0`` :ref:`๐<class_Skeleton3D_property_motion_scale>`
- .. rst-class:: classref-property-setget
- - |void| **set_motion_scale**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_motion_scale**\ (\ )
- Multiplies the 3D position track animation.
- \ **Note:** Unless this value is ``1.0``, the key value in animation will not match the actual position value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_property_show_rest_only:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **show_rest_only** = ``false`` :ref:`๐<class_Skeleton3D_property_show_rest_only>`
- .. rst-class:: classref-property-setget
- - |void| **set_show_rest_only**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_show_rest_only**\ (\ )
- If ``true``, forces the bones in their default rest pose, regardless of their values. In the editor, this also prevents the bones from being edited.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_Skeleton3D_method_add_bone:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **add_bone**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`๐<class_Skeleton3D_method_add_bone>`
- Adds a new bone with the given name. Returns the new bone's index, or ``-1`` if this method fails.
- \ **Note:** Bone names should be unique, non empty, and cannot include the ``:`` and ``/`` characters.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_clear_bones:
- .. rst-class:: classref-method
- |void| **clear_bones**\ (\ ) :ref:`๐<class_Skeleton3D_method_clear_bones>`
- Clear all the bones in this skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_clear_bones_global_pose_override:
- .. rst-class:: classref-method
- |void| **clear_bones_global_pose_override**\ (\ ) :ref:`๐<class_Skeleton3D_method_clear_bones_global_pose_override>`
- **Deprecated:** This method may be changed or removed in future versions.
- Removes the global pose override on all bones in the skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_create_skin_from_rest_transforms:
- .. rst-class:: classref-method
- :ref:`Skin<class_Skin>` **create_skin_from_rest_transforms**\ (\ ) :ref:`๐<class_Skeleton3D_method_create_skin_from_rest_transforms>`
- .. container:: contribute
- There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_find_bone:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **find_bone**\ (\ name\: :ref:`String<class_String>`\ ) |const| :ref:`๐<class_Skeleton3D_method_find_bone>`
- Returns the bone index that matches ``name`` as its name. Returns ``-1`` if no bone with this name exists.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_force_update_all_bone_transforms:
- .. rst-class:: classref-method
- |void| **force_update_all_bone_transforms**\ (\ ) :ref:`๐<class_Skeleton3D_method_force_update_all_bone_transforms>`
- **Deprecated:** This method should only be called internally.
- Force updates the bone transforms/poses for all bones in the skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_force_update_bone_child_transform:
- .. rst-class:: classref-method
- |void| **force_update_bone_child_transform**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_Skeleton3D_method_force_update_bone_child_transform>`
- Force updates the bone transform for the bone at ``bone_idx`` and all of its children.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_children:
- .. rst-class:: classref-method
- :ref:`PackedInt32Array<class_PackedInt32Array>` **get_bone_children**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_children>`
- Returns an array containing the bone indexes of all the child node of the passed in bone, ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_bone_count**\ (\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_count>`
- Returns the number of bones in the skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_global_pose:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_global_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_global_pose>`
- Returns the overall transform of the specified bone, with respect to the skeleton. Being relative to the skeleton frame, this is not the actual "global" transform of the bone.
- \ **Note:** This is the global pose you set to the skeleton in the process, the final global pose can get overridden by modifiers in the deferred process, if you want to access the final global pose, use :ref:`SkeletonModifier3D.modification_processed<class_SkeletonModifier3D_signal_modification_processed>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_global_pose_no_override:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_global_pose_no_override**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_global_pose_no_override>`
- **Deprecated:** This method may be changed or removed in future versions.
- Returns the overall transform of the specified bone, with respect to the skeleton, but without any global pose overrides. Being relative to the skeleton frame, this is not the actual "global" transform of the bone.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_global_pose_override:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_global_pose_override**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_global_pose_override>`
- **Deprecated:** This method may be changed or removed in future versions.
- Returns the global pose override transform for ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_global_rest:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_global_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_global_rest>`
- Returns the global rest transform for ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_meta:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **get_bone_meta**\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_meta>`
- Returns bone metadata for ``bone_idx`` with ``key``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_meta_list:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] **get_bone_meta_list**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_meta_list>`
- Returns a list of all metadata keys for ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_name:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_bone_name**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_name>`
- Returns the name of the bone at index ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_parent:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_bone_parent**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_parent>`
- Returns the bone index which is the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
- \ **Note:** The parent bone returned will always be less than ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_pose:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_pose>`
- Returns the pose transform of the specified bone.
- \ **Note:** This is the pose you set to the skeleton in the process, the final pose can get overridden by modifiers in the deferred process, if you want to access the final pose, use :ref:`SkeletonModifier3D.modification_processed<class_SkeletonModifier3D_signal_modification_processed>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_pose_position:
- .. rst-class:: classref-method
- :ref:`Vector3<class_Vector3>` **get_bone_pose_position**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_pose_position>`
- Returns the pose position of the bone at ``bone_idx``. The returned :ref:`Vector3<class_Vector3>` is in the local coordinate space of the **Skeleton3D** node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_pose_rotation:
- .. rst-class:: classref-method
- :ref:`Quaternion<class_Quaternion>` **get_bone_pose_rotation**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_pose_rotation>`
- Returns the pose rotation of the bone at ``bone_idx``. The returned :ref:`Quaternion<class_Quaternion>` is local to the bone with respect to the rotation of any parent bones.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_pose_scale:
- .. rst-class:: classref-method
- :ref:`Vector3<class_Vector3>` **get_bone_pose_scale**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_pose_scale>`
- Returns the pose scale of the bone at ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_bone_rest:
- .. rst-class:: classref-method
- :ref:`Transform3D<class_Transform3D>` **get_bone_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_get_bone_rest>`
- Returns the rest transform for a bone ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_concatenated_bone_names:
- .. rst-class:: classref-method
- :ref:`StringName<class_StringName>` **get_concatenated_bone_names**\ (\ ) |const| :ref:`๐<class_Skeleton3D_method_get_concatenated_bone_names>`
- Returns all bone names concatenated with commas (``,``) as a single :ref:`StringName<class_StringName>`.
- It is useful to set it as a hint for the enum property.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_parentless_bones:
- .. rst-class:: classref-method
- :ref:`PackedInt32Array<class_PackedInt32Array>` **get_parentless_bones**\ (\ ) |const| :ref:`๐<class_Skeleton3D_method_get_parentless_bones>`
- Returns an array with all of the bones that are parentless. Another way to look at this is that it returns the indexes of all the bones that are not dependent or modified by other bones in the Skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_get_version:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_version**\ (\ ) |const| :ref:`๐<class_Skeleton3D_method_get_version>`
- Returns the number of times the bone hierarchy has changed within this skeleton, including renames.
- The Skeleton version is not serialized: only use within a single instance of Skeleton3D.
- Use for invalidating caches in IK solvers and other nodes which process bones.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_has_bone_meta:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_bone_meta**\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`๐<class_Skeleton3D_method_has_bone_meta>`
- Returns whether there exists any bone metadata for ``bone_idx`` with key ``key``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_is_bone_enabled:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_bone_enabled**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_Skeleton3D_method_is_bone_enabled>`
- Returns whether the bone pose for the bone at ``bone_idx`` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_localize_rests:
- .. rst-class:: classref-method
- |void| **localize_rests**\ (\ ) :ref:`๐<class_Skeleton3D_method_localize_rests>`
- Returns all bones in the skeleton to their rest poses.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_physical_bones_add_collision_exception:
- .. rst-class:: classref-method
- |void| **physical_bones_add_collision_exception**\ (\ exception\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_Skeleton3D_method_physical_bones_add_collision_exception>`
- **Deprecated:** This method may be changed or removed in future versions.
- Adds a collision exception to the physical bone.
- Works just like the :ref:`RigidBody3D<class_RigidBody3D>` node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_physical_bones_remove_collision_exception:
- .. rst-class:: classref-method
- |void| **physical_bones_remove_collision_exception**\ (\ exception\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_Skeleton3D_method_physical_bones_remove_collision_exception>`
- **Deprecated:** This method may be changed or removed in future versions.
- Removes a collision exception to the physical bone.
- Works just like the :ref:`RigidBody3D<class_RigidBody3D>` node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_physical_bones_start_simulation:
- .. rst-class:: classref-method
- |void| **physical_bones_start_simulation**\ (\ bones\: :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] = []\ ) :ref:`๐<class_Skeleton3D_method_physical_bones_start_simulation>`
- **Deprecated:** This method may be changed or removed in future versions.
- Tells the :ref:`PhysicalBone3D<class_PhysicalBone3D>` nodes in the Skeleton to start simulating and reacting to the physics world.
- Optionally, a list of bone names can be passed-in, allowing only the passed-in bones to be simulated.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_physical_bones_stop_simulation:
- .. rst-class:: classref-method
- |void| **physical_bones_stop_simulation**\ (\ ) :ref:`๐<class_Skeleton3D_method_physical_bones_stop_simulation>`
- **Deprecated:** This method may be changed or removed in future versions.
- Tells the :ref:`PhysicalBone3D<class_PhysicalBone3D>` nodes in the Skeleton to stop simulating.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_register_skin:
- .. rst-class:: classref-method
- :ref:`SkinReference<class_SkinReference>` **register_skin**\ (\ skin\: :ref:`Skin<class_Skin>`\ ) :ref:`๐<class_Skeleton3D_method_register_skin>`
- Binds the given Skin to the Skeleton.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_reset_bone_pose:
- .. rst-class:: classref-method
- |void| **reset_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_Skeleton3D_method_reset_bone_pose>`
- Sets the bone pose to rest for ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_reset_bone_poses:
- .. rst-class:: classref-method
- |void| **reset_bone_poses**\ (\ ) :ref:`๐<class_Skeleton3D_method_reset_bone_poses>`
- Sets all bone poses to rests.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_enabled:
- .. rst-class:: classref-method
- |void| **set_bone_enabled**\ (\ bone_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>` = true\ ) :ref:`๐<class_Skeleton3D_method_set_bone_enabled>`
- Disables the pose for the bone at ``bone_idx`` if ``false``, enables the bone pose if ``true``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_global_pose:
- .. rst-class:: classref-method
- |void| **set_bone_global_pose**\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_global_pose>`
- Sets the global pose transform, ``pose``, for the bone at ``bone_idx``.
- \ **Note:** If other bone poses have been changed, this method executes a dirty poses recalculation and will cause performance to deteriorate. If you know that multiple global poses will be applied, consider using :ref:`set_bone_pose<class_Skeleton3D_method_set_bone_pose>` with precalculation.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_global_pose_override:
- .. rst-class:: classref-method
- |void| **set_bone_global_pose_override**\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`, amount\: :ref:`float<class_float>`, persistent\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_Skeleton3D_method_set_bone_global_pose_override>`
- **Deprecated:** This method may be changed or removed in future versions.
- Sets the global pose transform, ``pose``, for the bone at ``bone_idx``.
- \ ``amount`` is the interpolation strength that will be used when applying the pose, and ``persistent`` determines if the applied pose will remain.
- \ **Note:** The pose transform needs to be a global pose! To convert a world transform from a :ref:`Node3D<class_Node3D>` to a global bone pose, multiply the :ref:`Transform3D.affine_inverse<class_Transform3D_method_affine_inverse>` of the node's :ref:`Node3D.global_transform<class_Node3D_property_global_transform>` by the desired world transform.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_meta:
- .. rst-class:: classref-method
- |void| **set_bone_meta**\ (\ bone_idx\: :ref:`int<class_int>`, key\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_meta>`
- Sets bone metadata for ``bone_idx``, will set the ``key`` meta to ``value``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_name:
- .. rst-class:: classref-method
- |void| **set_bone_name**\ (\ bone_idx\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_name>`
- Sets the bone name, ``name``, for the bone at ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_parent:
- .. rst-class:: classref-method
- |void| **set_bone_parent**\ (\ bone_idx\: :ref:`int<class_int>`, parent_idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_parent>`
- Sets the bone index ``parent_idx`` as the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
- \ **Note:** ``parent_idx`` must be less than ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_pose:
- .. rst-class:: classref-method
- |void| **set_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_pose>`
- Sets the pose transform, ``pose``, for the bone at ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_pose_position:
- .. rst-class:: classref-method
- |void| **set_bone_pose_position**\ (\ bone_idx\: :ref:`int<class_int>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_pose_position>`
- Sets the pose position of the bone at ``bone_idx`` to ``position``. ``position`` is a :ref:`Vector3<class_Vector3>` describing a position local to the **Skeleton3D** node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_pose_rotation:
- .. rst-class:: classref-method
- |void| **set_bone_pose_rotation**\ (\ bone_idx\: :ref:`int<class_int>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_pose_rotation>`
- Sets the pose rotation of the bone at ``bone_idx`` to ``rotation``. ``rotation`` is a :ref:`Quaternion<class_Quaternion>` describing a rotation in the bone's local coordinate space with respect to the rotation of any parent bones.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_pose_scale:
- .. rst-class:: classref-method
- |void| **set_bone_pose_scale**\ (\ bone_idx\: :ref:`int<class_int>`, scale\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_pose_scale>`
- Sets the pose scale of the bone at ``bone_idx`` to ``scale``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_set_bone_rest:
- .. rst-class:: classref-method
- |void| **set_bone_rest**\ (\ bone_idx\: :ref:`int<class_int>`, rest\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐<class_Skeleton3D_method_set_bone_rest>`
- Sets the rest transform for bone ``bone_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Skeleton3D_method_unparent_bone_and_rest:
- .. rst-class:: classref-method
- |void| **unparent_bone_and_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_Skeleton3D_method_unparent_bone_and_rest>`
- Unparents the bone at ``bone_idx`` and sets its rest position to that of its parent prior to being reset.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |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.)`
|