class_boneconstraint3d.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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:`int<class_int>` | :ref:`get_setting_count<class_BoneConstraint3D_method_get_setting_count>`\ (\ ) |const| |
  35. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | |void| | :ref:`set_amount<class_BoneConstraint3D_method_set_amount>`\ (\ index\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) |
  37. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | |void| | :ref:`set_apply_bone<class_BoneConstraint3D_method_set_apply_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  39. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | |void| | :ref:`set_apply_bone_name<class_BoneConstraint3D_method_set_apply_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  41. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`set_reference_bone<class_BoneConstraint3D_method_set_reference_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  43. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | |void| | :ref:`set_reference_bone_name<class_BoneConstraint3D_method_set_reference_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  45. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | |void| | :ref:`set_setting_count<class_BoneConstraint3D_method_set_setting_count>`\ (\ count\: :ref:`int<class_int>`\ ) |
  47. +-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. .. rst-class:: classref-section-separator
  49. ----
  50. .. rst-class:: classref-descriptions-group
  51. Method Descriptions
  52. -------------------
  53. .. _class_BoneConstraint3D_method_clear_setting:
  54. .. rst-class:: classref-method
  55. |void| **clear_setting**\ (\ ) :ref:`🔗<class_BoneConstraint3D_method_clear_setting>`
  56. Clear all settings.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_BoneConstraint3D_method_get_amount:
  60. .. rst-class:: classref-method
  61. :ref:`float<class_float>` **get_amount**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_amount>`
  62. Returns the apply amount of the setting at ``index``.
  63. .. rst-class:: classref-item-separator
  64. ----
  65. .. _class_BoneConstraint3D_method_get_apply_bone:
  66. .. rst-class:: classref-method
  67. :ref:`int<class_int>` **get_apply_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_apply_bone>`
  68. Returns the apply bone of the setting at ``index``. This bone will be modified.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_BoneConstraint3D_method_get_apply_bone_name:
  72. .. rst-class:: classref-method
  73. :ref:`String<class_String>` **get_apply_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_apply_bone_name>`
  74. Returns the apply bone name of the setting at ``index``. This bone will be modified.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_BoneConstraint3D_method_get_reference_bone:
  78. .. rst-class:: classref-method
  79. :ref:`int<class_int>` **get_reference_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_bone>`
  80. Returns the reference bone of the setting at ``index``.
  81. This bone will be only referenced and not modified by this modifier.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_BoneConstraint3D_method_get_reference_bone_name:
  85. .. rst-class:: classref-method
  86. :ref:`String<class_String>` **get_reference_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_reference_bone_name>`
  87. Returns the reference bone name of the setting at ``index``.
  88. This bone will be only referenced and not modified by this modifier.
  89. .. rst-class:: classref-item-separator
  90. ----
  91. .. _class_BoneConstraint3D_method_get_setting_count:
  92. .. rst-class:: classref-method
  93. :ref:`int<class_int>` **get_setting_count**\ (\ ) |const| :ref:`🔗<class_BoneConstraint3D_method_get_setting_count>`
  94. Returns the number of settings in the modifier.
  95. .. rst-class:: classref-item-separator
  96. ----
  97. .. _class_BoneConstraint3D_method_set_amount:
  98. .. rst-class:: classref-method
  99. |void| **set_amount**\ (\ index\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_amount>`
  100. Sets the apply amount of the setting at ``index`` to ``amount``.
  101. .. rst-class:: classref-item-separator
  102. ----
  103. .. _class_BoneConstraint3D_method_set_apply_bone:
  104. .. rst-class:: classref-method
  105. |void| **set_apply_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_apply_bone>`
  106. Sets the apply bone of the setting at ``index`` to ``bone``. This bone will be modified.
  107. .. rst-class:: classref-item-separator
  108. ----
  109. .. _class_BoneConstraint3D_method_set_apply_bone_name:
  110. .. rst-class:: classref-method
  111. |void| **set_apply_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_apply_bone_name>`
  112. Sets the apply bone of the setting at ``index`` to ``bone_name``. This bone will be modified.
  113. .. rst-class:: classref-item-separator
  114. ----
  115. .. _class_BoneConstraint3D_method_set_reference_bone:
  116. .. rst-class:: classref-method
  117. |void| **set_reference_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_bone>`
  118. Sets the reference bone of the setting at ``index`` to ``bone``.
  119. This bone will be only referenced and not modified by this modifier.
  120. .. rst-class:: classref-item-separator
  121. ----
  122. .. _class_BoneConstraint3D_method_set_reference_bone_name:
  123. .. rst-class:: classref-method
  124. |void| **set_reference_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_reference_bone_name>`
  125. Sets the reference bone of the setting at ``index`` to ``bone_name``.
  126. This bone will be only referenced and not modified by this modifier.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_BoneConstraint3D_method_set_setting_count:
  130. .. rst-class:: classref-method
  131. |void| **set_setting_count**\ (\ count\: :ref:`int<class_int>`\ ) :ref:`🔗<class_BoneConstraint3D_method_set_setting_count>`
  132. Sets the number of settings in the modifier.
  133. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  134. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  135. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  136. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  137. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  138. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  139. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  140. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  141. .. |void| replace:: :abbr:`void (No return value.)`