2
0

class_boneconstraint3d.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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/BoneConstraint3D.xml.
  6. .. _class_BoneConstraint3D:
  7. BoneConstraint3D
  8. ================
  9. **Inherits:** :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`AimModifier3D<class_AimModifier3D>`, :ref:`ConvertTransformModifier3D<class_ConvertTransformModifier3D>`, :ref:`CopyTransformModifier3D<class_CopyTransformModifier3D>`
  11. A node that may modify Skeleton3D's bone with associating the two bones.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Base class of :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` that modifies the bone set in :ref:`set_apply_bone()<class_BoneConstraint3D_method_set_apply_bone>` based on the transform of the bone retrieved by :ref:`get_reference_bone()<class_BoneConstraint3D_method_get_reference_bone>`.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | |void| | :ref:`clear_setting<class_BoneConstraint3D_method_clear_setting>`\ (\ ) |
  23. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`get_amount<class_BoneConstraint3D_method_get_amount>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  25. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`int<class_int>` | :ref:`get_apply_bone<class_BoneConstraint3D_method_get_apply_bone>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  27. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`String<class_String>` | :ref:`get_apply_bone_name<class_BoneConstraint3D_method_get_apply_bone_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  29. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`int<class_int>` | :ref:`get_reference_bone<class_BoneConstraint3D_method_get_reference_bone>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  31. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`String<class_String>` | :ref:`get_reference_bone_name<class_BoneConstraint3D_method_get_reference_bone_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  33. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`NodePath<class_NodePath>` | :ref:`get_reference_node<class_BoneConstraint3D_method_get_reference_node>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  35. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>` | :ref:`get_reference_type<class_BoneConstraint3D_method_get_reference_type>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  37. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`get_setting_count<class_BoneConstraint3D_method_get_setting_count>`\ (\ ) |const| |
  39. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | |void| | :ref:`set_amount<class_BoneConstraint3D_method_set_amount>`\ (\ index\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) |
  41. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`set_apply_bone<class_BoneConstraint3D_method_set_apply_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  43. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | |void| | :ref:`set_apply_bone_name<class_BoneConstraint3D_method_set_apply_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  45. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | |void| | :ref:`set_reference_bone<class_BoneConstraint3D_method_set_reference_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  47. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | |void| | :ref:`set_reference_bone_name<class_BoneConstraint3D_method_set_reference_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  49. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | |void| | :ref:`set_reference_node<class_BoneConstraint3D_method_set_reference_node>`\ (\ index\: :ref:`int<class_int>`, node\: :ref:`NodePath<class_NodePath>`\ ) |
  51. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | |void| | :ref:`set_reference_type<class_BoneConstraint3D_method_set_reference_type>`\ (\ index\: :ref:`int<class_int>`, type\: :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>`\ ) |
  53. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | |void| | :ref:`set_setting_count<class_BoneConstraint3D_method_set_setting_count>`\ (\ count\: :ref:`int<class_int>`\ ) |
  55. +-----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. .. rst-class:: classref-section-separator
  57. ----
  58. .. rst-class:: classref-descriptions-group
  59. Enumerations
  60. ------------
  61. .. _enum_BoneConstraint3D_ReferenceType:
  62. .. rst-class:: classref-enumeration
  63. enum **ReferenceType**: :ref:`🔗<enum_BoneConstraint3D_ReferenceType>`
  64. .. _class_BoneConstraint3D_constant_REFERENCE_TYPE_BONE:
  65. .. rst-class:: classref-enumeration-constant
  66. :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>` **REFERENCE_TYPE_BONE** = ``0``
  67. The reference target is a bone. In this case, the reference target spaces is local space.
  68. .. _class_BoneConstraint3D_constant_REFERENCE_TYPE_NODE:
  69. .. rst-class:: classref-enumeration-constant
  70. :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>` **REFERENCE_TYPE_NODE** = ``1``
  71. The reference target is a :ref:`Node3D<class_Node3D>`. In this case, the reference target spaces is model space.
  72. In other words, the reference target's coordinates are treated as if it were placed directly under :ref:`Skeleton3D<class_Skeleton3D>` which parent of the **BoneConstraint3D**.
  73. .. rst-class:: classref-section-separator
  74. ----
  75. .. rst-class:: classref-descriptions-group
  76. Method Descriptions
  77. -------------------
  78. .. _class_BoneConstraint3D_method_clear_setting:
  79. .. rst-class:: classref-method
  80. |void| **clear_setting**\ (\ ) :ref:`🔗<class_BoneConstraint3D_method_clear_setting>`
  81. Clear all settings.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_BoneConstraint3D_method_get_amount:
  85. .. rst-class:: classref-method
  86. :ref:`float<class_float>` **get_amount**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_amount>`
  87. Returns the apply amount of the setting at ``index``.
  88. .. rst-class:: classref-item-separator
  89. ----
  90. .. _class_BoneConstraint3D_method_get_apply_bone:
  91. .. rst-class:: classref-method
  92. :ref:`int<class_int>` **get_apply_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_apply_bone>`
  93. Returns the apply bone of the setting at ``index``. This bone will be modified.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_BoneConstraint3D_method_get_apply_bone_name:
  97. .. rst-class:: classref-method
  98. :ref:`String<class_String>` **get_apply_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_apply_bone_name>`
  99. Returns the apply bone name of the setting at ``index``. This bone will be modified.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_BoneConstraint3D_method_get_reference_bone:
  103. .. rst-class:: classref-method
  104. :ref:`int<class_int>` **get_reference_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_bone>`
  105. Returns the reference bone of the setting at ``index``.
  106. This bone will be only referenced and not modified by this modifier.
  107. .. rst-class:: classref-item-separator
  108. ----
  109. .. _class_BoneConstraint3D_method_get_reference_bone_name:
  110. .. rst-class:: classref-method
  111. :ref:`String<class_String>` **get_reference_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_bone_name>`
  112. Returns the reference bone name of the setting at ``index``.
  113. This bone will be only referenced and not modified by this modifier.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_BoneConstraint3D_method_get_reference_node:
  117. .. rst-class:: classref-method
  118. :ref:`NodePath<class_NodePath>` **get_reference_node**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_node>`
  119. Returns the reference node path of the setting at ``index``.
  120. This node will be only referenced and not modified by this modifier.
  121. .. rst-class:: classref-item-separator
  122. ----
  123. .. _class_BoneConstraint3D_method_get_reference_type:
  124. .. rst-class:: classref-method
  125. :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>` **get_reference_type**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_type>`
  126. Returns the reference target type of the setting at ``index``. See also :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>`.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_BoneConstraint3D_method_get_setting_count:
  130. .. rst-class:: classref-method
  131. :ref:`int<class_int>` **get_setting_count**\ (\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_setting_count>`
  132. Returns the number of settings in the modifier.
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_BoneConstraint3D_method_set_amount:
  136. .. rst-class:: classref-method
  137. |void| **set_amount**\ (\ index\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_amount>`
  138. Sets the apply amount of the setting at ``index`` to ``amount``.
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _class_BoneConstraint3D_method_set_apply_bone:
  142. .. rst-class:: classref-method
  143. |void| **set_apply_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_apply_bone>`
  144. Sets the apply bone of the setting at ``index`` to ``bone``. This bone will be modified.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_BoneConstraint3D_method_set_apply_bone_name:
  148. .. rst-class:: classref-method
  149. |void| **set_apply_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_apply_bone_name>`
  150. Sets the apply bone of the setting at ``index`` to ``bone_name``. This bone will be modified.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_BoneConstraint3D_method_set_reference_bone:
  154. .. rst-class:: classref-method
  155. |void| **set_reference_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_bone>`
  156. Sets the reference bone of the setting at ``index`` to ``bone``.
  157. This bone will be only referenced and not modified by this modifier.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_BoneConstraint3D_method_set_reference_bone_name:
  161. .. rst-class:: classref-method
  162. |void| **set_reference_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_bone_name>`
  163. Sets the reference bone of the setting at ``index`` to ``bone_name``.
  164. This bone will be only referenced and not modified by this modifier.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_BoneConstraint3D_method_set_reference_node:
  168. .. rst-class:: classref-method
  169. |void| **set_reference_node**\ (\ index\: :ref:`int<class_int>`, node\: :ref:`NodePath<class_NodePath>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_node>`
  170. Sets the reference node path of the setting at ``index`` to ``node``.
  171. This node will be only referenced and not modified by this modifier.
  172. .. rst-class:: classref-item-separator
  173. ----
  174. .. _class_BoneConstraint3D_method_set_reference_type:
  175. .. rst-class:: classref-method
  176. |void| **set_reference_type**\ (\ index\: :ref:`int<class_int>`, type\: :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_type>`
  177. Sets the reference target type of the setting at ``index`` to ``type``. See also :ref:`ReferenceType<enum_BoneConstraint3D_ReferenceType>`.
  178. .. rst-class:: classref-item-separator
  179. ----
  180. .. _class_BoneConstraint3D_method_set_setting_count:
  181. .. rst-class:: classref-method
  182. |void| **set_setting_count**\ (\ count\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_setting_count>`
  183. Sets the number of settings in the modifier.
  184. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  185. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  186. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  187. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  188. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  189. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  190. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  191. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  192. .. |void| replace:: :abbr:`void (No return value.)`