class_skeleton3d.rst 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/Skeleton3D.xml.
  6. .. _class_Skeleton3D:
  7. Skeleton3D
  8. ==========
  9. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A node containing a bone hierarchy, used to create a 3D skeletal animation.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **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.
  15. 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.
  16. 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.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
  27. | :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` | :ref:`modifier_callback_mode_process<class_Skeleton3D_property_modifier_callback_mode_process>` | ``1`` |
  28. +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
  29. | :ref:`float<class_float>` | :ref:`motion_scale<class_Skeleton3D_property_motion_scale>` | ``1.0`` |
  30. +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
  31. | :ref:`bool<class_bool>` | :ref:`show_rest_only<class_Skeleton3D_property_show_rest_only>` | ``false`` |
  32. +---------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+-----------+
  33. .. rst-class:: classref-reftable-group
  34. Methods
  35. -------
  36. .. table::
  37. :widths: auto
  38. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`int<class_int>` | :ref:`add_bone<class_Skeleton3D_method_add_bone>`\ (\ name\: :ref:`String<class_String>`\ ) |
  40. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | |void| | :ref:`clear_bones<class_Skeleton3D_method_clear_bones>`\ (\ ) |
  42. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | |void| | :ref:`clear_bones_global_pose_override<class_Skeleton3D_method_clear_bones_global_pose_override>`\ (\ ) |
  44. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Skin<class_Skin>` | :ref:`create_skin_from_rest_transforms<class_Skeleton3D_method_create_skin_from_rest_transforms>`\ (\ ) |
  46. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`int<class_int>` | :ref:`find_bone<class_Skeleton3D_method_find_bone>`\ (\ name\: :ref:`String<class_String>`\ ) |const| |
  48. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | |void| | :ref:`force_update_all_bone_transforms<class_Skeleton3D_method_force_update_all_bone_transforms>`\ (\ ) |
  50. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | |void| | :ref:`force_update_bone_child_transform<class_Skeleton3D_method_force_update_bone_child_transform>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
  52. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`bool<class_bool>` | :ref:`get_animate_physical_bones<class_Skeleton3D_method_get_animate_physical_bones>`\ (\ ) |const| |
  54. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_bone_children<class_Skeleton3D_method_get_bone_children>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  56. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`int<class_int>` | :ref:`get_bone_count<class_Skeleton3D_method_get_bone_count>`\ (\ ) |const| |
  58. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_pose<class_Skeleton3D_method_get_bone_global_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  60. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :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| |
  62. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :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| |
  64. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_global_rest<class_Skeleton3D_method_get_bone_global_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  66. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`String<class_String>` | :ref:`get_bone_name<class_Skeleton3D_method_get_bone_name>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  68. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`int<class_int>` | :ref:`get_bone_parent<class_Skeleton3D_method_get_bone_parent>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  70. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_pose<class_Skeleton3D_method_get_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  72. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`Vector3<class_Vector3>` | :ref:`get_bone_pose_position<class_Skeleton3D_method_get_bone_pose_position>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  74. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`Quaternion<class_Quaternion>` | :ref:`get_bone_pose_rotation<class_Skeleton3D_method_get_bone_pose_rotation>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  76. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`Vector3<class_Vector3>` | :ref:`get_bone_pose_scale<class_Skeleton3D_method_get_bone_pose_scale>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  78. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_bone_rest<class_Skeleton3D_method_get_bone_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  80. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | :ref:`StringName<class_StringName>` | :ref:`get_concatenated_bone_names<class_Skeleton3D_method_get_concatenated_bone_names>`\ (\ ) |const| |
  82. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_parentless_bones<class_Skeleton3D_method_get_parentless_bones>`\ (\ ) |const| |
  84. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | :ref:`int<class_int>` | :ref:`get_version<class_Skeleton3D_method_get_version>`\ (\ ) |const| |
  86. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | :ref:`bool<class_bool>` | :ref:`is_bone_enabled<class_Skeleton3D_method_is_bone_enabled>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| |
  88. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | |void| | :ref:`localize_rests<class_Skeleton3D_method_localize_rests>`\ (\ ) |
  90. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | |void| | :ref:`physical_bones_add_collision_exception<class_Skeleton3D_method_physical_bones_add_collision_exception>`\ (\ exception\: :ref:`RID<class_RID>`\ ) |
  92. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | |void| | :ref:`physical_bones_remove_collision_exception<class_Skeleton3D_method_physical_bones_remove_collision_exception>`\ (\ exception\: :ref:`RID<class_RID>`\ ) |
  94. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | |void| | :ref:`physical_bones_start_simulation<class_Skeleton3D_method_physical_bones_start_simulation>`\ (\ bones\: :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] = []\ ) |
  96. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | |void| | :ref:`physical_bones_stop_simulation<class_Skeleton3D_method_physical_bones_stop_simulation>`\ (\ ) |
  98. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | :ref:`SkinReference<class_SkinReference>` | :ref:`register_skin<class_Skeleton3D_method_register_skin>`\ (\ skin\: :ref:`Skin<class_Skin>`\ ) |
  100. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | |void| | :ref:`reset_bone_pose<class_Skeleton3D_method_reset_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
  102. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | |void| | :ref:`reset_bone_poses<class_Skeleton3D_method_reset_bone_poses>`\ (\ ) |
  104. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | |void| | :ref:`set_animate_physical_bones<class_Skeleton3D_method_set_animate_physical_bones>`\ (\ enabled\: :ref:`bool<class_bool>`\ ) |
  106. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | |void| | :ref:`set_bone_enabled<class_Skeleton3D_method_set_bone_enabled>`\ (\ bone_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>` = true\ ) |
  108. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | |void| | :ref:`set_bone_global_pose<class_Skeleton3D_method_set_bone_global_pose>`\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) |
  110. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | |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\ ) |
  112. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | |void| | :ref:`set_bone_name<class_Skeleton3D_method_set_bone_name>`\ (\ bone_idx\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
  114. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. | |void| | :ref:`set_bone_parent<class_Skeleton3D_method_set_bone_parent>`\ (\ bone_idx\: :ref:`int<class_int>`, parent_idx\: :ref:`int<class_int>`\ ) |
  116. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  117. | |void| | :ref:`set_bone_pose<class_Skeleton3D_method_set_bone_pose>`\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) |
  118. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  119. | |void| | :ref:`set_bone_pose_position<class_Skeleton3D_method_set_bone_pose_position>`\ (\ bone_idx\: :ref:`int<class_int>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
  120. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  121. | |void| | :ref:`set_bone_pose_rotation<class_Skeleton3D_method_set_bone_pose_rotation>`\ (\ bone_idx\: :ref:`int<class_int>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ ) |
  122. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  123. | |void| | :ref:`set_bone_pose_scale<class_Skeleton3D_method_set_bone_pose_scale>`\ (\ bone_idx\: :ref:`int<class_int>`, scale\: :ref:`Vector3<class_Vector3>`\ ) |
  124. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  125. | |void| | :ref:`set_bone_rest<class_Skeleton3D_method_set_bone_rest>`\ (\ bone_idx\: :ref:`int<class_int>`, rest\: :ref:`Transform3D<class_Transform3D>`\ ) |
  126. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  127. | |void| | :ref:`unparent_bone_and_rest<class_Skeleton3D_method_unparent_bone_and_rest>`\ (\ bone_idx\: :ref:`int<class_int>`\ ) |
  128. +-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  129. .. rst-class:: classref-section-separator
  130. ----
  131. .. rst-class:: classref-descriptions-group
  132. Signals
  133. -------
  134. .. _class_Skeleton3D_signal_bone_enabled_changed:
  135. .. rst-class:: classref-signal
  136. **bone_enabled_changed**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_signal_bone_enabled_changed>`
  137. 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.
  138. .. rst-class:: classref-item-separator
  139. ----
  140. .. _class_Skeleton3D_signal_bone_list_changed:
  141. .. rst-class:: classref-signal
  142. **bone_list_changed**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_signal_bone_list_changed>`
  143. .. container:: contribute
  144. There is currently no description for this signal. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_Skeleton3D_signal_pose_updated:
  148. .. rst-class:: classref-signal
  149. **pose_updated**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_signal_pose_updated>`
  150. Emitted when the pose is updated.
  151. \ **Note:** During the update process, this signal is not fired, so modification by :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` is not detected.
  152. .. rst-class:: classref-item-separator
  153. ----
  154. .. _class_Skeleton3D_signal_show_rest_only_changed:
  155. .. rst-class:: classref-signal
  156. **show_rest_only_changed**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_signal_show_rest_only_changed>`
  157. Emitted when the value of :ref:`show_rest_only<class_Skeleton3D_property_show_rest_only>` changes.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_Skeleton3D_signal_skeleton_updated:
  161. .. rst-class:: classref-signal
  162. **skeleton_updated**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_signal_skeleton_updated>`
  163. Emitted when the final pose has been calculated will be applied to the skin in the update process.
  164. 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>`.
  165. .. rst-class:: classref-section-separator
  166. ----
  167. .. rst-class:: classref-descriptions-group
  168. Enumerations
  169. ------------
  170. .. _enum_Skeleton3D_ModifierCallbackModeProcess:
  171. .. rst-class:: classref-enumeration
  172. enum **ModifierCallbackModeProcess**: :ref:`๐Ÿ”—<enum_Skeleton3D_ModifierCallbackModeProcess>`
  173. .. _class_Skeleton3D_constant_MODIFIER_CALLBACK_MODE_PROCESS_PHYSICS:
  174. .. rst-class:: classref-enumeration-constant
  175. :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **MODIFIER_CALLBACK_MODE_PROCESS_PHYSICS** = ``0``
  176. Set a flag to process modification during physics frames (see :ref:`Node.NOTIFICATION_INTERNAL_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PHYSICS_PROCESS>`).
  177. .. _class_Skeleton3D_constant_MODIFIER_CALLBACK_MODE_PROCESS_IDLE:
  178. .. rst-class:: classref-enumeration-constant
  179. :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **MODIFIER_CALLBACK_MODE_PROCESS_IDLE** = ``1``
  180. Set a flag to process modification during process frames (see :ref:`Node.NOTIFICATION_INTERNAL_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PROCESS>`).
  181. .. rst-class:: classref-section-separator
  182. ----
  183. .. rst-class:: classref-descriptions-group
  184. Constants
  185. ---------
  186. .. _class_Skeleton3D_constant_NOTIFICATION_UPDATE_SKELETON:
  187. .. rst-class:: classref-constant
  188. **NOTIFICATION_UPDATE_SKELETON** = ``50`` :ref:`๐Ÿ”—<class_Skeleton3D_constant_NOTIFICATION_UPDATE_SKELETON>`
  189. 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.
  190. .. rst-class:: classref-section-separator
  191. ----
  192. .. rst-class:: classref-descriptions-group
  193. Property Descriptions
  194. ---------------------
  195. .. _class_Skeleton3D_property_modifier_callback_mode_process:
  196. .. rst-class:: classref-property
  197. :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **modifier_callback_mode_process** = ``1`` :ref:`๐Ÿ”—<class_Skeleton3D_property_modifier_callback_mode_process>`
  198. .. rst-class:: classref-property-setget
  199. - |void| **set_modifier_callback_mode_process**\ (\ value\: :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>`\ )
  200. - :ref:`ModifierCallbackModeProcess<enum_Skeleton3D_ModifierCallbackModeProcess>` **get_modifier_callback_mode_process**\ (\ )
  201. Sets the processing timing for the Modifier.
  202. .. rst-class:: classref-item-separator
  203. ----
  204. .. _class_Skeleton3D_property_motion_scale:
  205. .. rst-class:: classref-property
  206. :ref:`float<class_float>` **motion_scale** = ``1.0`` :ref:`๐Ÿ”—<class_Skeleton3D_property_motion_scale>`
  207. .. rst-class:: classref-property-setget
  208. - |void| **set_motion_scale**\ (\ value\: :ref:`float<class_float>`\ )
  209. - :ref:`float<class_float>` **get_motion_scale**\ (\ )
  210. Multiplies the 3D position track animation.
  211. \ **Note:** Unless this value is ``1.0``, the key value in animation will not match the actual position value.
  212. .. rst-class:: classref-item-separator
  213. ----
  214. .. _class_Skeleton3D_property_show_rest_only:
  215. .. rst-class:: classref-property
  216. :ref:`bool<class_bool>` **show_rest_only** = ``false`` :ref:`๐Ÿ”—<class_Skeleton3D_property_show_rest_only>`
  217. .. rst-class:: classref-property-setget
  218. - |void| **set_show_rest_only**\ (\ value\: :ref:`bool<class_bool>`\ )
  219. - :ref:`bool<class_bool>` **is_show_rest_only**\ (\ )
  220. 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.
  221. .. rst-class:: classref-section-separator
  222. ----
  223. .. rst-class:: classref-descriptions-group
  224. Method Descriptions
  225. -------------------
  226. .. _class_Skeleton3D_method_add_bone:
  227. .. rst-class:: classref-method
  228. :ref:`int<class_int>` **add_bone**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_add_bone>`
  229. Adds a new bone with the given name. Returns the new bone's index, or ``-1`` if this method fails.
  230. \ **Note:** Bone names should be unique, non empty, and cannot include the ``:`` and ``/`` characters.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_Skeleton3D_method_clear_bones:
  234. .. rst-class:: classref-method
  235. |void| **clear_bones**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_clear_bones>`
  236. Clear all the bones in this skeleton.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_Skeleton3D_method_clear_bones_global_pose_override:
  240. .. rst-class:: classref-method
  241. |void| **clear_bones_global_pose_override**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_clear_bones_global_pose_override>`
  242. **Deprecated:** This method may be changed or removed in future versions.
  243. Removes the global pose override on all bones in the skeleton.
  244. .. rst-class:: classref-item-separator
  245. ----
  246. .. _class_Skeleton3D_method_create_skin_from_rest_transforms:
  247. .. rst-class:: classref-method
  248. :ref:`Skin<class_Skin>` **create_skin_from_rest_transforms**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_create_skin_from_rest_transforms>`
  249. .. container:: contribute
  250. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  251. .. rst-class:: classref-item-separator
  252. ----
  253. .. _class_Skeleton3D_method_find_bone:
  254. .. rst-class:: classref-method
  255. :ref:`int<class_int>` **find_bone**\ (\ name\: :ref:`String<class_String>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_find_bone>`
  256. Returns the bone index that matches ``name`` as its name. Returns ``-1`` if no bone with this name exists.
  257. .. rst-class:: classref-item-separator
  258. ----
  259. .. _class_Skeleton3D_method_force_update_all_bone_transforms:
  260. .. rst-class:: classref-method
  261. |void| **force_update_all_bone_transforms**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_force_update_all_bone_transforms>`
  262. **Deprecated:** This method should only be called internally.
  263. Force updates the bone transforms/poses for all bones in the skeleton.
  264. .. rst-class:: classref-item-separator
  265. ----
  266. .. _class_Skeleton3D_method_force_update_bone_child_transform:
  267. .. rst-class:: classref-method
  268. |void| **force_update_bone_child_transform**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_force_update_bone_child_transform>`
  269. Force updates the bone transform for the bone at ``bone_idx`` and all of its children.
  270. .. rst-class:: classref-item-separator
  271. ----
  272. .. _class_Skeleton3D_method_get_animate_physical_bones:
  273. .. rst-class:: classref-method
  274. :ref:`bool<class_bool>` **get_animate_physical_bones**\ (\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_animate_physical_bones>`
  275. **Deprecated:** This method may be changed or removed in future versions.
  276. .. rst-class:: classref-item-separator
  277. ----
  278. .. _class_Skeleton3D_method_get_bone_children:
  279. .. rst-class:: classref-method
  280. :ref:`PackedInt32Array<class_PackedInt32Array>` **get_bone_children**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_children>`
  281. Returns an array containing the bone indexes of all the child node of the passed in bone, ``bone_idx``.
  282. .. rst-class:: classref-item-separator
  283. ----
  284. .. _class_Skeleton3D_method_get_bone_count:
  285. .. rst-class:: classref-method
  286. :ref:`int<class_int>` **get_bone_count**\ (\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_count>`
  287. Returns the number of bones in the skeleton.
  288. .. rst-class:: classref-item-separator
  289. ----
  290. .. _class_Skeleton3D_method_get_bone_global_pose:
  291. .. rst-class:: classref-method
  292. :ref:`Transform3D<class_Transform3D>` **get_bone_global_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_global_pose>`
  293. 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.
  294. \ **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>`.
  295. .. rst-class:: classref-item-separator
  296. ----
  297. .. _class_Skeleton3D_method_get_bone_global_pose_no_override:
  298. .. rst-class:: classref-method
  299. :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>`
  300. **Deprecated:** This method may be changed or removed in future versions.
  301. 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.
  302. .. rst-class:: classref-item-separator
  303. ----
  304. .. _class_Skeleton3D_method_get_bone_global_pose_override:
  305. .. rst-class:: classref-method
  306. :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>`
  307. **Deprecated:** This method may be changed or removed in future versions.
  308. Returns the global pose override transform for ``bone_idx``.
  309. .. rst-class:: classref-item-separator
  310. ----
  311. .. _class_Skeleton3D_method_get_bone_global_rest:
  312. .. rst-class:: classref-method
  313. :ref:`Transform3D<class_Transform3D>` **get_bone_global_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_global_rest>`
  314. Returns the global rest transform for ``bone_idx``.
  315. .. rst-class:: classref-item-separator
  316. ----
  317. .. _class_Skeleton3D_method_get_bone_name:
  318. .. rst-class:: classref-method
  319. :ref:`String<class_String>` **get_bone_name**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_name>`
  320. Returns the name of the bone at index ``bone_idx``.
  321. .. rst-class:: classref-item-separator
  322. ----
  323. .. _class_Skeleton3D_method_get_bone_parent:
  324. .. rst-class:: classref-method
  325. :ref:`int<class_int>` **get_bone_parent**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_parent>`
  326. Returns the bone index which is the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
  327. \ **Note:** The parent bone returned will always be less than ``bone_idx``.
  328. .. rst-class:: classref-item-separator
  329. ----
  330. .. _class_Skeleton3D_method_get_bone_pose:
  331. .. rst-class:: classref-method
  332. :ref:`Transform3D<class_Transform3D>` **get_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_pose>`
  333. Returns the pose transform of the specified bone.
  334. \ **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>`.
  335. .. rst-class:: classref-item-separator
  336. ----
  337. .. _class_Skeleton3D_method_get_bone_pose_position:
  338. .. rst-class:: classref-method
  339. :ref:`Vector3<class_Vector3>` **get_bone_pose_position**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_pose_position>`
  340. 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.
  341. .. rst-class:: classref-item-separator
  342. ----
  343. .. _class_Skeleton3D_method_get_bone_pose_rotation:
  344. .. rst-class:: classref-method
  345. :ref:`Quaternion<class_Quaternion>` **get_bone_pose_rotation**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_pose_rotation>`
  346. 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.
  347. .. rst-class:: classref-item-separator
  348. ----
  349. .. _class_Skeleton3D_method_get_bone_pose_scale:
  350. .. rst-class:: classref-method
  351. :ref:`Vector3<class_Vector3>` **get_bone_pose_scale**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_pose_scale>`
  352. Returns the pose scale of the bone at ``bone_idx``.
  353. .. rst-class:: classref-item-separator
  354. ----
  355. .. _class_Skeleton3D_method_get_bone_rest:
  356. .. rst-class:: classref-method
  357. :ref:`Transform3D<class_Transform3D>` **get_bone_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_bone_rest>`
  358. Returns the rest transform for a bone ``bone_idx``.
  359. .. rst-class:: classref-item-separator
  360. ----
  361. .. _class_Skeleton3D_method_get_concatenated_bone_names:
  362. .. rst-class:: classref-method
  363. :ref:`StringName<class_StringName>` **get_concatenated_bone_names**\ (\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_concatenated_bone_names>`
  364. Returns all bone names concatenated with commas (``,``) as a single :ref:`StringName<class_StringName>`.
  365. It is useful to set it as a hint for the enum property.
  366. .. rst-class:: classref-item-separator
  367. ----
  368. .. _class_Skeleton3D_method_get_parentless_bones:
  369. .. rst-class:: classref-method
  370. :ref:`PackedInt32Array<class_PackedInt32Array>` **get_parentless_bones**\ (\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_parentless_bones>`
  371. 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.
  372. .. rst-class:: classref-item-separator
  373. ----
  374. .. _class_Skeleton3D_method_get_version:
  375. .. rst-class:: classref-method
  376. :ref:`int<class_int>` **get_version**\ (\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_get_version>`
  377. Returns the number of times the bone hierarchy has changed within this skeleton, including renames.
  378. The Skeleton version is not serialized: only use within a single instance of Skeleton3D.
  379. Use for invalidating caches in IK solvers and other nodes which process bones.
  380. .. rst-class:: classref-item-separator
  381. ----
  382. .. _class_Skeleton3D_method_is_bone_enabled:
  383. .. rst-class:: classref-method
  384. :ref:`bool<class_bool>` **is_bone_enabled**\ (\ bone_idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_Skeleton3D_method_is_bone_enabled>`
  385. Returns whether the bone pose for the bone at ``bone_idx`` is enabled.
  386. .. rst-class:: classref-item-separator
  387. ----
  388. .. _class_Skeleton3D_method_localize_rests:
  389. .. rst-class:: classref-method
  390. |void| **localize_rests**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_localize_rests>`
  391. Returns all bones in the skeleton to their rest poses.
  392. .. rst-class:: classref-item-separator
  393. ----
  394. .. _class_Skeleton3D_method_physical_bones_add_collision_exception:
  395. .. rst-class:: classref-method
  396. |void| **physical_bones_add_collision_exception**\ (\ exception\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_physical_bones_add_collision_exception>`
  397. **Deprecated:** This method may be changed or removed in future versions.
  398. Adds a collision exception to the physical bone.
  399. Works just like the :ref:`RigidBody3D<class_RigidBody3D>` node.
  400. .. rst-class:: classref-item-separator
  401. ----
  402. .. _class_Skeleton3D_method_physical_bones_remove_collision_exception:
  403. .. rst-class:: classref-method
  404. |void| **physical_bones_remove_collision_exception**\ (\ exception\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_physical_bones_remove_collision_exception>`
  405. **Deprecated:** This method may be changed or removed in future versions.
  406. Removes a collision exception to the physical bone.
  407. Works just like the :ref:`RigidBody3D<class_RigidBody3D>` node.
  408. .. rst-class:: classref-item-separator
  409. ----
  410. .. _class_Skeleton3D_method_physical_bones_start_simulation:
  411. .. rst-class:: classref-method
  412. |void| **physical_bones_start_simulation**\ (\ bones\: :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] = []\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_physical_bones_start_simulation>`
  413. **Deprecated:** This method may be changed or removed in future versions.
  414. Tells the :ref:`PhysicalBone3D<class_PhysicalBone3D>` nodes in the Skeleton to start simulating and reacting to the physics world.
  415. Optionally, a list of bone names can be passed-in, allowing only the passed-in bones to be simulated.
  416. .. rst-class:: classref-item-separator
  417. ----
  418. .. _class_Skeleton3D_method_physical_bones_stop_simulation:
  419. .. rst-class:: classref-method
  420. |void| **physical_bones_stop_simulation**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_physical_bones_stop_simulation>`
  421. **Deprecated:** This method may be changed or removed in future versions.
  422. Tells the :ref:`PhysicalBone3D<class_PhysicalBone3D>` nodes in the Skeleton to stop simulating.
  423. .. rst-class:: classref-item-separator
  424. ----
  425. .. _class_Skeleton3D_method_register_skin:
  426. .. rst-class:: classref-method
  427. :ref:`SkinReference<class_SkinReference>` **register_skin**\ (\ skin\: :ref:`Skin<class_Skin>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_register_skin>`
  428. Binds the given Skin to the Skeleton.
  429. .. rst-class:: classref-item-separator
  430. ----
  431. .. _class_Skeleton3D_method_reset_bone_pose:
  432. .. rst-class:: classref-method
  433. |void| **reset_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_reset_bone_pose>`
  434. Sets the bone pose to rest for ``bone_idx``.
  435. .. rst-class:: classref-item-separator
  436. ----
  437. .. _class_Skeleton3D_method_reset_bone_poses:
  438. .. rst-class:: classref-method
  439. |void| **reset_bone_poses**\ (\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_reset_bone_poses>`
  440. Sets all bone poses to rests.
  441. .. rst-class:: classref-item-separator
  442. ----
  443. .. _class_Skeleton3D_method_set_animate_physical_bones:
  444. .. rst-class:: classref-method
  445. |void| **set_animate_physical_bones**\ (\ enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_animate_physical_bones>`
  446. **Deprecated:** This method may be changed or removed in future versions.
  447. This method exists for compatibility with old structures in which the **Skeleton3D** does not have a :ref:`PhysicalBoneSimulator3D<class_PhysicalBoneSimulator3D>` as a child, but directly has :ref:`PhysicalBone3D<class_PhysicalBone3D>`\ s as children.
  448. In case you need to raycast to it without running :ref:`physical_bones_start_simulation<class_Skeleton3D_method_physical_bones_start_simulation>`, call this method with ``enabled == true``.
  449. .. rst-class:: classref-item-separator
  450. ----
  451. .. _class_Skeleton3D_method_set_bone_enabled:
  452. .. rst-class:: classref-method
  453. |void| **set_bone_enabled**\ (\ bone_idx\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>` = true\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_enabled>`
  454. Disables the pose for the bone at ``bone_idx`` if ``false``, enables the bone pose if ``true``.
  455. .. rst-class:: classref-item-separator
  456. ----
  457. .. _class_Skeleton3D_method_set_bone_global_pose:
  458. .. rst-class:: classref-method
  459. |void| **set_bone_global_pose**\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_global_pose>`
  460. Sets the global pose transform, ``pose``, for the bone at ``bone_idx``.
  461. \ **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.
  462. .. rst-class:: classref-item-separator
  463. ----
  464. .. _class_Skeleton3D_method_set_bone_global_pose_override:
  465. .. rst-class:: classref-method
  466. |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>`
  467. **Deprecated:** This method may be changed or removed in future versions.
  468. Sets the global pose transform, ``pose``, for the bone at ``bone_idx``.
  469. \ ``amount`` is the interpolation strength that will be used when applying the pose, and ``persistent`` determines if the applied pose will remain.
  470. \ **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.
  471. .. rst-class:: classref-item-separator
  472. ----
  473. .. _class_Skeleton3D_method_set_bone_name:
  474. .. rst-class:: classref-method
  475. |void| **set_bone_name**\ (\ bone_idx\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_name>`
  476. Sets the bone name, ``name``, for the bone at ``bone_idx``.
  477. .. rst-class:: classref-item-separator
  478. ----
  479. .. _class_Skeleton3D_method_set_bone_parent:
  480. .. rst-class:: classref-method
  481. |void| **set_bone_parent**\ (\ bone_idx\: :ref:`int<class_int>`, parent_idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_parent>`
  482. Sets the bone index ``parent_idx`` as the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
  483. \ **Note:** ``parent_idx`` must be less than ``bone_idx``.
  484. .. rst-class:: classref-item-separator
  485. ----
  486. .. _class_Skeleton3D_method_set_bone_pose:
  487. .. rst-class:: classref-method
  488. |void| **set_bone_pose**\ (\ bone_idx\: :ref:`int<class_int>`, pose\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_pose>`
  489. Sets the pose transform, ``pose``, for the bone at ``bone_idx``.
  490. .. rst-class:: classref-item-separator
  491. ----
  492. .. _class_Skeleton3D_method_set_bone_pose_position:
  493. .. rst-class:: classref-method
  494. |void| **set_bone_pose_position**\ (\ bone_idx\: :ref:`int<class_int>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_pose_position>`
  495. 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.
  496. .. rst-class:: classref-item-separator
  497. ----
  498. .. _class_Skeleton3D_method_set_bone_pose_rotation:
  499. .. rst-class:: classref-method
  500. |void| **set_bone_pose_rotation**\ (\ bone_idx\: :ref:`int<class_int>`, rotation\: :ref:`Quaternion<class_Quaternion>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_pose_rotation>`
  501. 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.
  502. .. rst-class:: classref-item-separator
  503. ----
  504. .. _class_Skeleton3D_method_set_bone_pose_scale:
  505. .. rst-class:: classref-method
  506. |void| **set_bone_pose_scale**\ (\ bone_idx\: :ref:`int<class_int>`, scale\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_pose_scale>`
  507. Sets the pose scale of the bone at ``bone_idx`` to ``scale``.
  508. .. rst-class:: classref-item-separator
  509. ----
  510. .. _class_Skeleton3D_method_set_bone_rest:
  511. .. rst-class:: classref-method
  512. |void| **set_bone_rest**\ (\ bone_idx\: :ref:`int<class_int>`, rest\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_set_bone_rest>`
  513. Sets the rest transform for bone ``bone_idx``.
  514. .. rst-class:: classref-item-separator
  515. ----
  516. .. _class_Skeleton3D_method_unparent_bone_and_rest:
  517. .. rst-class:: classref-method
  518. |void| **unparent_bone_and_rest**\ (\ bone_idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_Skeleton3D_method_unparent_bone_and_rest>`
  519. Unparents the bone at ``bone_idx`` and sets its rest position to that of its parent prior to being reset.
  520. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  521. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  522. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  523. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  524. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  525. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  526. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  527. .. |void| replace:: :abbr:`void (No return value.)`