class_limitangularvelocitymodifier3d.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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/LimitAngularVelocityModifier3D.xml.
  6. .. _class_LimitAngularVelocityModifier3D:
  7. LimitAngularVelocityModifier3D
  8. ==============================
  9. **Inherits:** :ref:`SkeletonModifier3D<class_SkeletonModifier3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Limit bone rotation angular velocity.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This modifier limits bone rotation angular velocity by comparing poses between previous and current frame.
  15. You can add bone chains by specifying their root and end bones, then add the bones between them to a list. Modifier processes either that list or the bones excluding those in the list depending on the option :ref:`exclude<class_LimitAngularVelocityModifier3D_property_exclude>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------+-------------------------------------------------------------------------------------------------+---------------+
  22. | :ref:`int<class_int>` | :ref:`chain_count<class_LimitAngularVelocityModifier3D_property_chain_count>` | ``0`` |
  23. +---------------------------+-------------------------------------------------------------------------------------------------+---------------+
  24. | :ref:`bool<class_bool>` | :ref:`exclude<class_LimitAngularVelocityModifier3D_property_exclude>` | ``false`` |
  25. +---------------------------+-------------------------------------------------------------------------------------------------+---------------+
  26. | :ref:`int<class_int>` | :ref:`joint_count<class_LimitAngularVelocityModifier3D_property_joint_count>` | ``0`` |
  27. +---------------------------+-------------------------------------------------------------------------------------------------+---------------+
  28. | :ref:`float<class_float>` | :ref:`max_angular_velocity<class_LimitAngularVelocityModifier3D_property_max_angular_velocity>` | ``6.2831855`` |
  29. +---------------------------+-------------------------------------------------------------------------------------------------+---------------+
  30. .. rst-class:: classref-reftable-group
  31. Methods
  32. -------
  33. .. table::
  34. :widths: auto
  35. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | |void| | :ref:`clear_chains<class_LimitAngularVelocityModifier3D_method_clear_chains>`\ (\ ) |
  37. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`get_end_bone<class_LimitAngularVelocityModifier3D_method_get_end_bone>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  39. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`String<class_String>` | :ref:`get_end_bone_name<class_LimitAngularVelocityModifier3D_method_get_end_bone_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  41. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`int<class_int>` | :ref:`get_root_bone<class_LimitAngularVelocityModifier3D_method_get_root_bone>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  43. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`String<class_String>` | :ref:`get_root_bone_name<class_LimitAngularVelocityModifier3D_method_get_root_bone_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  45. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | |void| | :ref:`reset<class_LimitAngularVelocityModifier3D_method_reset>`\ (\ ) |
  47. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | |void| | :ref:`set_end_bone<class_LimitAngularVelocityModifier3D_method_set_end_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  49. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | |void| | :ref:`set_end_bone_name<class_LimitAngularVelocityModifier3D_method_set_end_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  51. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | |void| | :ref:`set_root_bone<class_LimitAngularVelocityModifier3D_method_set_root_bone>`\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) |
  53. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | |void| | :ref:`set_root_bone_name<class_LimitAngularVelocityModifier3D_method_set_root_bone_name>`\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) |
  55. +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. .. rst-class:: classref-section-separator
  57. ----
  58. .. rst-class:: classref-descriptions-group
  59. Property Descriptions
  60. ---------------------
  61. .. _class_LimitAngularVelocityModifier3D_property_chain_count:
  62. .. rst-class:: classref-property
  63. :ref:`int<class_int>` **chain_count** = ``0`` :ref:`🔗<class_LimitAngularVelocityModifier3D_property_chain_count>`
  64. .. rst-class:: classref-property-setget
  65. - |void| **set_chain_count**\ (\ value\: :ref:`int<class_int>`\ )
  66. - :ref:`int<class_int>` **get_chain_count**\ (\ )
  67. The number of chains.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_LimitAngularVelocityModifier3D_property_exclude:
  71. .. rst-class:: classref-property
  72. :ref:`bool<class_bool>` **exclude** = ``false`` :ref:`🔗<class_LimitAngularVelocityModifier3D_property_exclude>`
  73. .. rst-class:: classref-property-setget
  74. - |void| **set_exclude**\ (\ value\: :ref:`bool<class_bool>`\ )
  75. - :ref:`bool<class_bool>` **is_exclude**\ (\ )
  76. If ``true``, the modifier processes bones not included in the bone list.
  77. If ``false``, the bones processed by the modifier are equal to the bone list.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_LimitAngularVelocityModifier3D_property_joint_count:
  81. .. rst-class:: classref-property
  82. :ref:`int<class_int>` **joint_count** = ``0`` :ref:`🔗<class_LimitAngularVelocityModifier3D_property_joint_count>`
  83. The number of joints in the list which created by chains dynamically.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_LimitAngularVelocityModifier3D_property_max_angular_velocity:
  87. .. rst-class:: classref-property
  88. :ref:`float<class_float>` **max_angular_velocity** = ``6.2831855`` :ref:`🔗<class_LimitAngularVelocityModifier3D_property_max_angular_velocity>`
  89. .. rst-class:: classref-property-setget
  90. - |void| **set_max_angular_velocity**\ (\ value\: :ref:`float<class_float>`\ )
  91. - :ref:`float<class_float>` **get_max_angular_velocity**\ (\ )
  92. The maximum angular velocity per second.
  93. .. rst-class:: classref-section-separator
  94. ----
  95. .. rst-class:: classref-descriptions-group
  96. Method Descriptions
  97. -------------------
  98. .. _class_LimitAngularVelocityModifier3D_method_clear_chains:
  99. .. rst-class:: classref-method
  100. |void| **clear_chains**\ (\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_clear_chains>`
  101. Clear all chains.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_LimitAngularVelocityModifier3D_method_get_end_bone:
  105. .. rst-class:: classref-method
  106. :ref:`int<class_int>` **get_end_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_LimitAngularVelocityModifier3D_method_get_end_bone>`
  107. Returns the end bone index of the bone chain.
  108. .. rst-class:: classref-item-separator
  109. ----
  110. .. _class_LimitAngularVelocityModifier3D_method_get_end_bone_name:
  111. .. rst-class:: classref-method
  112. :ref:`String<class_String>` **get_end_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_LimitAngularVelocityModifier3D_method_get_end_bone_name>`
  113. Returns the end bone name of the bone chain.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_LimitAngularVelocityModifier3D_method_get_root_bone:
  117. .. rst-class:: classref-method
  118. :ref:`int<class_int>` **get_root_bone**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_LimitAngularVelocityModifier3D_method_get_root_bone>`
  119. Returns the root bone index of the bone chain.
  120. .. rst-class:: classref-item-separator
  121. ----
  122. .. _class_LimitAngularVelocityModifier3D_method_get_root_bone_name:
  123. .. rst-class:: classref-method
  124. :ref:`String<class_String>` **get_root_bone_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_LimitAngularVelocityModifier3D_method_get_root_bone_name>`
  125. Returns the root bone name of the bone chain.
  126. .. rst-class:: classref-item-separator
  127. ----
  128. .. _class_LimitAngularVelocityModifier3D_method_reset:
  129. .. rst-class:: classref-method
  130. |void| **reset**\ (\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_reset>`
  131. Sets the reference pose for angle comparison to the current pose with the influence of constraints removed. This function is automatically triggered when joints change or upon activation.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_LimitAngularVelocityModifier3D_method_set_end_bone:
  135. .. rst-class:: classref-method
  136. |void| **set_end_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_set_end_bone>`
  137. Sets the end bone index of the bone chain.
  138. .. rst-class:: classref-item-separator
  139. ----
  140. .. _class_LimitAngularVelocityModifier3D_method_set_end_bone_name:
  141. .. rst-class:: classref-method
  142. |void| **set_end_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_set_end_bone_name>`
  143. Sets the end bone name of the bone chain.
  144. \ **Note:** End bone must be the root bone or a child of the root bone.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_LimitAngularVelocityModifier3D_method_set_root_bone:
  148. .. rst-class:: classref-method
  149. |void| **set_root_bone**\ (\ index\: :ref:`int<class_int>`, bone\: :ref:`int<class_int>`\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_set_root_bone>`
  150. Sets the root bone index of the bone chain.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_LimitAngularVelocityModifier3D_method_set_root_bone_name:
  154. .. rst-class:: classref-method
  155. |void| **set_root_bone_name**\ (\ index\: :ref:`int<class_int>`, bone_name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_LimitAngularVelocityModifier3D_method_set_root_bone_name>`
  156. Sets the root bone name of the bone chain.
  157. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  158. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  159. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  160. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  161. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  162. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  163. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  164. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  165. .. |void| replace:: :abbr:`void (No return value.)`