class_skeleton.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/Skeleton.xml.
  6. .. _class_Skeleton:
  7. Skeleton
  8. ========
  9. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Skeleton for characters and animated objects.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Skeleton provides a hierarchical interface for managing 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 the following hierarchical order: rest pose, custom pose and pose.
  16. Note that "global pose" below refers to the overall transform of the bone with respect to skeleton, so it not the actual global/world transform of the bone.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - `3D Inverse Kinematics Demo <https://godotengine.org/asset-library/asset/523>`__
  21. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  22. .. rst-class:: classref-reftable-group
  23. Methods
  24. -------
  25. .. table::
  26. :widths: auto
  27. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`add_bone<class_Skeleton_method_add_bone>` **(** :ref:`String<class_String>` name **)** |
  29. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`bind_child_node_to_bone<class_Skeleton_method_bind_child_node_to_bone>` **(** :ref:`int<class_int>` bone_idx, :ref:`Node<class_Node>` node **)** |
  31. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`clear_bones<class_Skeleton_method_clear_bones>` **(** **)** |
  33. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`clear_bones_global_pose_override<class_Skeleton_method_clear_bones_global_pose_override>` **(** **)** |
  35. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`int<class_int>` | :ref:`find_bone<class_Skeleton_method_find_bone>` **(** :ref:`String<class_String>` name **)** |const| |
  37. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`get_bone_count<class_Skeleton_method_get_bone_count>` **(** **)** |const| |
  39. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`Transform<class_Transform>` | :ref:`get_bone_custom_pose<class_Skeleton_method_get_bone_custom_pose>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  41. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`Transform<class_Transform>` | :ref:`get_bone_global_pose<class_Skeleton_method_get_bone_global_pose>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  43. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`Transform<class_Transform>` | :ref:`get_bone_global_pose_no_override<class_Skeleton_method_get_bone_global_pose_no_override>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  45. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`String<class_String>` | :ref:`get_bone_name<class_Skeleton_method_get_bone_name>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  47. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`int<class_int>` | :ref:`get_bone_parent<class_Skeleton_method_get_bone_parent>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  49. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`Transform<class_Transform>` | :ref:`get_bone_pose<class_Skeleton_method_get_bone_pose>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  51. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`Transform<class_Transform>` | :ref:`get_bone_rest<class_Skeleton_method_get_bone_rest>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  53. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`Array<class_Array>` | :ref:`get_bound_child_nodes_to_bone<class_Skeleton_method_get_bound_child_nodes_to_bone>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  55. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`bool<class_bool>` | :ref:`is_bone_rest_disabled<class_Skeleton_method_is_bone_rest_disabled>` **(** :ref:`int<class_int>` bone_idx **)** |const| |
  57. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | void | :ref:`localize_rests<class_Skeleton_method_localize_rests>` **(** **)** |
  59. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | void | :ref:`physical_bones_add_collision_exception<class_Skeleton_method_physical_bones_add_collision_exception>` **(** :ref:`RID<class_RID>` exception **)** |
  61. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | void | :ref:`physical_bones_remove_collision_exception<class_Skeleton_method_physical_bones_remove_collision_exception>` **(** :ref:`RID<class_RID>` exception **)** |
  63. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | void | :ref:`physical_bones_start_simulation<class_Skeleton_method_physical_bones_start_simulation>` **(** :ref:`Array<class_Array>` bones=[ ] **)** |
  65. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | void | :ref:`physical_bones_stop_simulation<class_Skeleton_method_physical_bones_stop_simulation>` **(** **)** |
  67. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`SkinReference<class_SkinReference>` | :ref:`register_skin<class_Skeleton_method_register_skin>` **(** :ref:`Skin<class_Skin>` skin **)** |
  69. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | void | :ref:`set_bone_custom_pose<class_Skeleton_method_set_bone_custom_pose>` **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` custom_pose **)** |
  71. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | void | :ref:`set_bone_disable_rest<class_Skeleton_method_set_bone_disable_rest>` **(** :ref:`int<class_int>` bone_idx, :ref:`bool<class_bool>` disable **)** |
  73. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | void | :ref:`set_bone_global_pose_override<class_Skeleton_method_set_bone_global_pose_override>` **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` pose, :ref:`float<class_float>` amount, :ref:`bool<class_bool>` persistent=false **)** |
  75. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | void | :ref:`set_bone_name<class_Skeleton_method_set_bone_name>` **(** :ref:`int<class_int>` bone_idx, :ref:`String<class_String>` name **)** |
  77. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | void | :ref:`set_bone_parent<class_Skeleton_method_set_bone_parent>` **(** :ref:`int<class_int>` bone_idx, :ref:`int<class_int>` parent_idx **)** |
  79. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | void | :ref:`set_bone_pose<class_Skeleton_method_set_bone_pose>` **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` pose **)** |
  81. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | void | :ref:`set_bone_rest<class_Skeleton_method_set_bone_rest>` **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` rest **)** |
  83. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`unbind_child_node_from_bone<class_Skeleton_method_unbind_child_node_from_bone>` **(** :ref:`int<class_int>` bone_idx, :ref:`Node<class_Node>` node **)** |
  85. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`unparent_bone_and_rest<class_Skeleton_method_unparent_bone_and_rest>` **(** :ref:`int<class_int>` bone_idx **)** |
  87. +-------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. .. rst-class:: classref-section-separator
  89. ----
  90. .. rst-class:: classref-descriptions-group
  91. Signals
  92. -------
  93. .. _class_Skeleton_signal_skeleton_updated:
  94. .. rst-class:: classref-signal
  95. **skeleton_updated** **(** **)**
  96. .. container:: contribute
  97. There is currently no description for this signal. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  98. .. rst-class:: classref-section-separator
  99. ----
  100. .. rst-class:: classref-descriptions-group
  101. Constants
  102. ---------
  103. .. _class_Skeleton_constant_NOTIFICATION_UPDATE_SKELETON:
  104. .. rst-class:: classref-constant
  105. **NOTIFICATION_UPDATE_SKELETON** = ``50``
  106. .. rst-class:: classref-section-separator
  107. ----
  108. .. rst-class:: classref-descriptions-group
  109. Method Descriptions
  110. -------------------
  111. .. _class_Skeleton_method_add_bone:
  112. .. rst-class:: classref-method
  113. void **add_bone** **(** :ref:`String<class_String>` name **)**
  114. Adds a bone, with name ``name``. :ref:`get_bone_count<class_Skeleton_method_get_bone_count>` will become the bone index.
  115. .. rst-class:: classref-item-separator
  116. ----
  117. .. _class_Skeleton_method_bind_child_node_to_bone:
  118. .. rst-class:: classref-method
  119. void **bind_child_node_to_bone** **(** :ref:`int<class_int>` bone_idx, :ref:`Node<class_Node>` node **)**
  120. *Deprecated soon.*
  121. .. rst-class:: classref-item-separator
  122. ----
  123. .. _class_Skeleton_method_clear_bones:
  124. .. rst-class:: classref-method
  125. void **clear_bones** **(** **)**
  126. Clear all the bones in this skeleton.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_Skeleton_method_clear_bones_global_pose_override:
  130. .. rst-class:: classref-method
  131. void **clear_bones_global_pose_override** **(** **)**
  132. .. container:: contribute
  133. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  134. .. rst-class:: classref-item-separator
  135. ----
  136. .. _class_Skeleton_method_find_bone:
  137. .. rst-class:: classref-method
  138. :ref:`int<class_int>` **find_bone** **(** :ref:`String<class_String>` name **)** |const|
  139. Returns the bone index that matches ``name`` as its name.
  140. .. rst-class:: classref-item-separator
  141. ----
  142. .. _class_Skeleton_method_get_bone_count:
  143. .. rst-class:: classref-method
  144. :ref:`int<class_int>` **get_bone_count** **(** **)** |const|
  145. Returns the amount of bones in the skeleton.
  146. .. rst-class:: classref-item-separator
  147. ----
  148. .. _class_Skeleton_method_get_bone_custom_pose:
  149. .. rst-class:: classref-method
  150. :ref:`Transform<class_Transform>` **get_bone_custom_pose** **(** :ref:`int<class_int>` bone_idx **)** |const|
  151. Returns the custom pose of the specified bone. Custom pose is applied on top of the rest pose.
  152. .. rst-class:: classref-item-separator
  153. ----
  154. .. _class_Skeleton_method_get_bone_global_pose:
  155. .. rst-class:: classref-method
  156. :ref:`Transform<class_Transform>` **get_bone_global_pose** **(** :ref:`int<class_int>` bone_idx **)** |const|
  157. 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.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_Skeleton_method_get_bone_global_pose_no_override:
  161. .. rst-class:: classref-method
  162. :ref:`Transform<class_Transform>` **get_bone_global_pose_no_override** **(** :ref:`int<class_int>` bone_idx **)** |const|
  163. 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.
  164. .. rst-class:: classref-item-separator
  165. ----
  166. .. _class_Skeleton_method_get_bone_name:
  167. .. rst-class:: classref-method
  168. :ref:`String<class_String>` **get_bone_name** **(** :ref:`int<class_int>` bone_idx **)** |const|
  169. Returns the name of the bone at index ``index``.
  170. .. rst-class:: classref-item-separator
  171. ----
  172. .. _class_Skeleton_method_get_bone_parent:
  173. .. rst-class:: classref-method
  174. :ref:`int<class_int>` **get_bone_parent** **(** :ref:`int<class_int>` bone_idx **)** |const|
  175. Returns the bone index which is the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
  176. \ **Note:** The parent bone returned will always be less than ``bone_idx``.
  177. .. rst-class:: classref-item-separator
  178. ----
  179. .. _class_Skeleton_method_get_bone_pose:
  180. .. rst-class:: classref-method
  181. :ref:`Transform<class_Transform>` **get_bone_pose** **(** :ref:`int<class_int>` bone_idx **)** |const|
  182. Returns the pose transform of the specified bone. Pose is applied on top of the custom pose, which is applied on top the rest pose.
  183. .. rst-class:: classref-item-separator
  184. ----
  185. .. _class_Skeleton_method_get_bone_rest:
  186. .. rst-class:: classref-method
  187. :ref:`Transform<class_Transform>` **get_bone_rest** **(** :ref:`int<class_int>` bone_idx **)** |const|
  188. Returns the rest transform for a bone ``bone_idx``.
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _class_Skeleton_method_get_bound_child_nodes_to_bone:
  192. .. rst-class:: classref-method
  193. :ref:`Array<class_Array>` **get_bound_child_nodes_to_bone** **(** :ref:`int<class_int>` bone_idx **)** |const|
  194. *Deprecated soon.*
  195. .. rst-class:: classref-item-separator
  196. ----
  197. .. _class_Skeleton_method_is_bone_rest_disabled:
  198. .. rst-class:: classref-method
  199. :ref:`bool<class_bool>` **is_bone_rest_disabled** **(** :ref:`int<class_int>` bone_idx **)** |const|
  200. .. container:: contribute
  201. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  202. .. rst-class:: classref-item-separator
  203. ----
  204. .. _class_Skeleton_method_localize_rests:
  205. .. rst-class:: classref-method
  206. void **localize_rests** **(** **)**
  207. .. container:: contribute
  208. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  209. .. rst-class:: classref-item-separator
  210. ----
  211. .. _class_Skeleton_method_physical_bones_add_collision_exception:
  212. .. rst-class:: classref-method
  213. void **physical_bones_add_collision_exception** **(** :ref:`RID<class_RID>` exception **)**
  214. .. container:: contribute
  215. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  216. .. rst-class:: classref-item-separator
  217. ----
  218. .. _class_Skeleton_method_physical_bones_remove_collision_exception:
  219. .. rst-class:: classref-method
  220. void **physical_bones_remove_collision_exception** **(** :ref:`RID<class_RID>` exception **)**
  221. .. container:: contribute
  222. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_Skeleton_method_physical_bones_start_simulation:
  226. .. rst-class:: classref-method
  227. void **physical_bones_start_simulation** **(** :ref:`Array<class_Array>` bones=[ ] **)**
  228. .. container:: contribute
  229. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  230. .. rst-class:: classref-item-separator
  231. ----
  232. .. _class_Skeleton_method_physical_bones_stop_simulation:
  233. .. rst-class:: classref-method
  234. void **physical_bones_stop_simulation** **(** **)**
  235. .. container:: contribute
  236. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_Skeleton_method_register_skin:
  240. .. rst-class:: classref-method
  241. :ref:`SkinReference<class_SkinReference>` **register_skin** **(** :ref:`Skin<class_Skin>` skin **)**
  242. .. container:: contribute
  243. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  244. .. rst-class:: classref-item-separator
  245. ----
  246. .. _class_Skeleton_method_set_bone_custom_pose:
  247. .. rst-class:: classref-method
  248. void **set_bone_custom_pose** **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` custom_pose **)**
  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_Skeleton_method_set_bone_disable_rest:
  254. .. rst-class:: classref-method
  255. void **set_bone_disable_rest** **(** :ref:`int<class_int>` bone_idx, :ref:`bool<class_bool>` disable **)**
  256. .. container:: contribute
  257. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  258. .. rst-class:: classref-item-separator
  259. ----
  260. .. _class_Skeleton_method_set_bone_global_pose_override:
  261. .. rst-class:: classref-method
  262. void **set_bone_global_pose_override** **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` pose, :ref:`float<class_float>` amount, :ref:`bool<class_bool>` persistent=false **)**
  263. .. container:: contribute
  264. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  265. .. rst-class:: classref-item-separator
  266. ----
  267. .. _class_Skeleton_method_set_bone_name:
  268. .. rst-class:: classref-method
  269. void **set_bone_name** **(** :ref:`int<class_int>` bone_idx, :ref:`String<class_String>` name **)**
  270. .. container:: contribute
  271. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_Skeleton_method_set_bone_parent:
  275. .. rst-class:: classref-method
  276. void **set_bone_parent** **(** :ref:`int<class_int>` bone_idx, :ref:`int<class_int>` parent_idx **)**
  277. Sets the bone index ``parent_idx`` as the parent of the bone at ``bone_idx``. If -1, then bone has no parent.
  278. \ **Note:** ``parent_idx`` must be less than ``bone_idx``.
  279. .. rst-class:: classref-item-separator
  280. ----
  281. .. _class_Skeleton_method_set_bone_pose:
  282. .. rst-class:: classref-method
  283. void **set_bone_pose** **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` pose **)**
  284. Sets the pose transform for bone ``bone_idx``.
  285. .. rst-class:: classref-item-separator
  286. ----
  287. .. _class_Skeleton_method_set_bone_rest:
  288. .. rst-class:: classref-method
  289. void **set_bone_rest** **(** :ref:`int<class_int>` bone_idx, :ref:`Transform<class_Transform>` rest **)**
  290. Sets the rest transform for bone ``bone_idx``.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_Skeleton_method_unbind_child_node_from_bone:
  294. .. rst-class:: classref-method
  295. void **unbind_child_node_from_bone** **(** :ref:`int<class_int>` bone_idx, :ref:`Node<class_Node>` node **)**
  296. *Deprecated soon.*
  297. .. rst-class:: classref-item-separator
  298. ----
  299. .. _class_Skeleton_method_unparent_bone_and_rest:
  300. .. rst-class:: classref-method
  301. void **unparent_bone_and_rest** **(** :ref:`int<class_int>` bone_idx **)**
  302. .. container:: contribute
  303. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  304. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  305. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  306. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  307. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`