class_skeletonmodification2djiggle.rst 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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/SkeletonModification2DJiggle.xml.
  6. .. _class_SkeletonModification2DJiggle:
  7. SkeletonModification2DJiggle
  8. ============================
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`SkeletonModification2D<class_SkeletonModification2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  11. A modification that jiggles :ref:`Bone2D<class_Bone2D>` nodes as they move towards a target.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This modification moves a series of bones, typically called a bone chain, towards a target. What makes this modification special is that it calculates the velocity and acceleration for each bone in the bone chain, and runs a very light physics-like calculation using the inputted values. This allows the bones to overshoot the target and "jiggle" around. It can be configured to act more like a spring, or sway around like cloth might.
  16. This modification is useful for adding additional motion to things like hair, the edges of clothing, and more. It has several settings to that allow control over how the joint moves when the target moves.
  17. \ **Note:** The Jiggle modifier has ``jiggle_joints``, which are the data objects that hold the data for each joint in the Jiggle chain. This is different from than :ref:`Bone2D<class_Bone2D>` nodes! Jiggle joints hold the data needed for each :ref:`Bone2D<class_Bone2D>` in the bone chain used by the Jiggle modification.
  18. .. rst-class:: classref-reftable-group
  19. Properties
  20. ----------
  21. .. table::
  22. :widths: auto
  23. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  24. | :ref:`float<class_float>` | :ref:`damping<class_SkeletonModification2DJiggle_property_damping>` | ``0.75`` |
  25. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  26. | :ref:`Vector2<class_Vector2>` | :ref:`gravity<class_SkeletonModification2DJiggle_property_gravity>` | ``Vector2(0, 6)`` |
  27. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  28. | :ref:`int<class_int>` | :ref:`jiggle_data_chain_length<class_SkeletonModification2DJiggle_property_jiggle_data_chain_length>` | ``0`` |
  29. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  30. | :ref:`float<class_float>` | :ref:`mass<class_SkeletonModification2DJiggle_property_mass>` | ``0.75`` |
  31. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  32. | :ref:`float<class_float>` | :ref:`stiffness<class_SkeletonModification2DJiggle_property_stiffness>` | ``3.0`` |
  33. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  34. | :ref:`NodePath<class_NodePath>` | :ref:`target_nodepath<class_SkeletonModification2DJiggle_property_target_nodepath>` | ``NodePath("")`` |
  35. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  36. | :ref:`bool<class_bool>` | :ref:`use_gravity<class_SkeletonModification2DJiggle_property_use_gravity>` | ``false`` |
  37. +---------------------------------+-------------------------------------------------------------------------------------------------------+-------------------+
  38. .. rst-class:: classref-reftable-group
  39. Methods
  40. -------
  41. .. table::
  42. :widths: auto
  43. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`int<class_int>` | :ref:`get_collision_mask<class_SkeletonModification2DJiggle_method_get_collision_mask>`\ (\ ) |const| |
  45. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`NodePath<class_NodePath>` | :ref:`get_jiggle_joint_bone2d_node<class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone2d_node>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  47. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`int<class_int>` | :ref:`get_jiggle_joint_bone_index<class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone_index>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  49. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`get_jiggle_joint_damping<class_SkeletonModification2DJiggle_method_get_jiggle_joint_damping>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  51. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`Vector2<class_Vector2>` | :ref:`get_jiggle_joint_gravity<class_SkeletonModification2DJiggle_method_get_jiggle_joint_gravity>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  53. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`float<class_float>` | :ref:`get_jiggle_joint_mass<class_SkeletonModification2DJiggle_method_get_jiggle_joint_mass>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  55. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`bool<class_bool>` | :ref:`get_jiggle_joint_override<class_SkeletonModification2DJiggle_method_get_jiggle_joint_override>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  57. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`float<class_float>` | :ref:`get_jiggle_joint_stiffness<class_SkeletonModification2DJiggle_method_get_jiggle_joint_stiffness>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  59. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`bool<class_bool>` | :ref:`get_jiggle_joint_use_gravity<class_SkeletonModification2DJiggle_method_get_jiggle_joint_use_gravity>`\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| |
  61. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`get_use_colliders<class_SkeletonModification2DJiggle_method_get_use_colliders>`\ (\ ) |const| |
  63. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | |void| | :ref:`set_collision_mask<class_SkeletonModification2DJiggle_method_set_collision_mask>`\ (\ collision_mask\: :ref:`int<class_int>`\ ) |
  65. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | |void| | :ref:`set_jiggle_joint_bone2d_node<class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone2d_node>`\ (\ joint_idx\: :ref:`int<class_int>`, bone2d_node\: :ref:`NodePath<class_NodePath>`\ ) |
  67. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | |void| | :ref:`set_jiggle_joint_bone_index<class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone_index>`\ (\ joint_idx\: :ref:`int<class_int>`, bone_idx\: :ref:`int<class_int>`\ ) |
  69. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | |void| | :ref:`set_jiggle_joint_damping<class_SkeletonModification2DJiggle_method_set_jiggle_joint_damping>`\ (\ joint_idx\: :ref:`int<class_int>`, damping\: :ref:`float<class_float>`\ ) |
  71. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | |void| | :ref:`set_jiggle_joint_gravity<class_SkeletonModification2DJiggle_method_set_jiggle_joint_gravity>`\ (\ joint_idx\: :ref:`int<class_int>`, gravity\: :ref:`Vector2<class_Vector2>`\ ) |
  73. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | |void| | :ref:`set_jiggle_joint_mass<class_SkeletonModification2DJiggle_method_set_jiggle_joint_mass>`\ (\ joint_idx\: :ref:`int<class_int>`, mass\: :ref:`float<class_float>`\ ) |
  75. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | |void| | :ref:`set_jiggle_joint_override<class_SkeletonModification2DJiggle_method_set_jiggle_joint_override>`\ (\ joint_idx\: :ref:`int<class_int>`, override\: :ref:`bool<class_bool>`\ ) |
  77. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | |void| | :ref:`set_jiggle_joint_stiffness<class_SkeletonModification2DJiggle_method_set_jiggle_joint_stiffness>`\ (\ joint_idx\: :ref:`int<class_int>`, stiffness\: :ref:`float<class_float>`\ ) |
  79. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | |void| | :ref:`set_jiggle_joint_use_gravity<class_SkeletonModification2DJiggle_method_set_jiggle_joint_use_gravity>`\ (\ joint_idx\: :ref:`int<class_int>`, use_gravity\: :ref:`bool<class_bool>`\ ) |
  81. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | |void| | :ref:`set_use_colliders<class_SkeletonModification2DJiggle_method_set_use_colliders>`\ (\ use_colliders\: :ref:`bool<class_bool>`\ ) |
  83. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. .. rst-class:: classref-section-separator
  85. ----
  86. .. rst-class:: classref-descriptions-group
  87. Property Descriptions
  88. ---------------------
  89. .. _class_SkeletonModification2DJiggle_property_damping:
  90. .. rst-class:: classref-property
  91. :ref:`float<class_float>` **damping** = ``0.75`` :ref:`🔗<class_SkeletonModification2DJiggle_property_damping>`
  92. .. rst-class:: classref-property-setget
  93. - |void| **set_damping**\ (\ value\: :ref:`float<class_float>`\ )
  94. - :ref:`float<class_float>` **get_damping**\ (\ )
  95. The default amount of damping applied to the Jiggle joints, if they are not overridden. Higher values lead to more of the calculated velocity being applied.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_SkeletonModification2DJiggle_property_gravity:
  99. .. rst-class:: classref-property
  100. :ref:`Vector2<class_Vector2>` **gravity** = ``Vector2(0, 6)`` :ref:`🔗<class_SkeletonModification2DJiggle_property_gravity>`
  101. .. rst-class:: classref-property-setget
  102. - |void| **set_gravity**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  103. - :ref:`Vector2<class_Vector2>` **get_gravity**\ (\ )
  104. The default amount of gravity applied to the Jiggle joints, if they are not overridden.
  105. .. rst-class:: classref-item-separator
  106. ----
  107. .. _class_SkeletonModification2DJiggle_property_jiggle_data_chain_length:
  108. .. rst-class:: classref-property
  109. :ref:`int<class_int>` **jiggle_data_chain_length** = ``0`` :ref:`🔗<class_SkeletonModification2DJiggle_property_jiggle_data_chain_length>`
  110. .. rst-class:: classref-property-setget
  111. - |void| **set_jiggle_data_chain_length**\ (\ value\: :ref:`int<class_int>`\ )
  112. - :ref:`int<class_int>` **get_jiggle_data_chain_length**\ (\ )
  113. The amount of Jiggle joints in the Jiggle modification.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_SkeletonModification2DJiggle_property_mass:
  117. .. rst-class:: classref-property
  118. :ref:`float<class_float>` **mass** = ``0.75`` :ref:`🔗<class_SkeletonModification2DJiggle_property_mass>`
  119. .. rst-class:: classref-property-setget
  120. - |void| **set_mass**\ (\ value\: :ref:`float<class_float>`\ )
  121. - :ref:`float<class_float>` **get_mass**\ (\ )
  122. The default amount of mass assigned to the Jiggle joints, if they are not overridden. Higher values lead to faster movements and more overshooting.
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_SkeletonModification2DJiggle_property_stiffness:
  126. .. rst-class:: classref-property
  127. :ref:`float<class_float>` **stiffness** = ``3.0`` :ref:`🔗<class_SkeletonModification2DJiggle_property_stiffness>`
  128. .. rst-class:: classref-property-setget
  129. - |void| **set_stiffness**\ (\ value\: :ref:`float<class_float>`\ )
  130. - :ref:`float<class_float>` **get_stiffness**\ (\ )
  131. The default amount of stiffness assigned to the Jiggle joints, if they are not overridden. Higher values act more like springs, quickly moving into the correct position.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_SkeletonModification2DJiggle_property_target_nodepath:
  135. .. rst-class:: classref-property
  136. :ref:`NodePath<class_NodePath>` **target_nodepath** = ``NodePath("")`` :ref:`🔗<class_SkeletonModification2DJiggle_property_target_nodepath>`
  137. .. rst-class:: classref-property-setget
  138. - |void| **set_target_node**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  139. - :ref:`NodePath<class_NodePath>` **get_target_node**\ (\ )
  140. The NodePath to the node that is the target for the Jiggle modification. This node is what the Jiggle chain will attempt to rotate the bone chain to.
  141. .. rst-class:: classref-item-separator
  142. ----
  143. .. _class_SkeletonModification2DJiggle_property_use_gravity:
  144. .. rst-class:: classref-property
  145. :ref:`bool<class_bool>` **use_gravity** = ``false`` :ref:`🔗<class_SkeletonModification2DJiggle_property_use_gravity>`
  146. .. rst-class:: classref-property-setget
  147. - |void| **set_use_gravity**\ (\ value\: :ref:`bool<class_bool>`\ )
  148. - :ref:`bool<class_bool>` **get_use_gravity**\ (\ )
  149. Whether the gravity vector, :ref:`gravity<class_SkeletonModification2DJiggle_property_gravity>`, should be applied to the Jiggle joints, assuming they are not overriding the default settings.
  150. .. rst-class:: classref-section-separator
  151. ----
  152. .. rst-class:: classref-descriptions-group
  153. Method Descriptions
  154. -------------------
  155. .. _class_SkeletonModification2DJiggle_method_get_collision_mask:
  156. .. rst-class:: classref-method
  157. :ref:`int<class_int>` **get_collision_mask**\ (\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_collision_mask>`
  158. Returns the collision mask used by the Jiggle modifier when collisions are enabled.
  159. .. rst-class:: classref-item-separator
  160. ----
  161. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone2d_node:
  162. .. rst-class:: classref-method
  163. :ref:`NodePath<class_NodePath>` **get_jiggle_joint_bone2d_node**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone2d_node>`
  164. Returns the :ref:`Bone2D<class_Bone2D>` node assigned to the Jiggle joint at ``joint_idx``.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone_index:
  168. .. rst-class:: classref-method
  169. :ref:`int<class_int>` **get_jiggle_joint_bone_index**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_bone_index>`
  170. Returns the index of the :ref:`Bone2D<class_Bone2D>` node assigned to the Jiggle joint at ``joint_idx``.
  171. .. rst-class:: classref-item-separator
  172. ----
  173. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_damping:
  174. .. rst-class:: classref-method
  175. :ref:`float<class_float>` **get_jiggle_joint_damping**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_damping>`
  176. Returns the amount of damping of the Jiggle joint at ``joint_idx``.
  177. .. rst-class:: classref-item-separator
  178. ----
  179. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_gravity:
  180. .. rst-class:: classref-method
  181. :ref:`Vector2<class_Vector2>` **get_jiggle_joint_gravity**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_gravity>`
  182. Returns a :ref:`Vector2<class_Vector2>` representing the amount of gravity the Jiggle joint at ``joint_idx`` is influenced by.
  183. .. rst-class:: classref-item-separator
  184. ----
  185. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_mass:
  186. .. rst-class:: classref-method
  187. :ref:`float<class_float>` **get_jiggle_joint_mass**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_mass>`
  188. Returns the amount of mass of the jiggle joint at ``joint_idx``.
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_override:
  192. .. rst-class:: classref-method
  193. :ref:`bool<class_bool>` **get_jiggle_joint_override**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_override>`
  194. Returns a boolean that indicates whether the joint at ``joint_idx`` is overriding the default Jiggle joint data defined in the modification.
  195. .. rst-class:: classref-item-separator
  196. ----
  197. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_stiffness:
  198. .. rst-class:: classref-method
  199. :ref:`float<class_float>` **get_jiggle_joint_stiffness**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_stiffness>`
  200. Returns the stiffness of the Jiggle joint at ``joint_idx``.
  201. .. rst-class:: classref-item-separator
  202. ----
  203. .. _class_SkeletonModification2DJiggle_method_get_jiggle_joint_use_gravity:
  204. .. rst-class:: classref-method
  205. :ref:`bool<class_bool>` **get_jiggle_joint_use_gravity**\ (\ joint_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_jiggle_joint_use_gravity>`
  206. Returns a boolean that indicates whether the joint at ``joint_idx`` is using gravity or not.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_SkeletonModification2DJiggle_method_get_use_colliders:
  210. .. rst-class:: classref-method
  211. :ref:`bool<class_bool>` **get_use_colliders**\ (\ ) |const| :ref:`🔗<class_SkeletonModification2DJiggle_method_get_use_colliders>`
  212. Returns whether the jiggle modifier is taking physics colliders into account when solving.
  213. .. rst-class:: classref-item-separator
  214. ----
  215. .. _class_SkeletonModification2DJiggle_method_set_collision_mask:
  216. .. rst-class:: classref-method
  217. |void| **set_collision_mask**\ (\ collision_mask\: :ref:`int<class_int>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_collision_mask>`
  218. Sets the collision mask that the Jiggle modifier will use when reacting to colliders, if the Jiggle modifier is set to take colliders into account.
  219. .. rst-class:: classref-item-separator
  220. ----
  221. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone2d_node:
  222. .. rst-class:: classref-method
  223. |void| **set_jiggle_joint_bone2d_node**\ (\ joint_idx\: :ref:`int<class_int>`, bone2d_node\: :ref:`NodePath<class_NodePath>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone2d_node>`
  224. Sets the :ref:`Bone2D<class_Bone2D>` node assigned to the Jiggle joint at ``joint_idx``.
  225. .. rst-class:: classref-item-separator
  226. ----
  227. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone_index:
  228. .. rst-class:: classref-method
  229. |void| **set_jiggle_joint_bone_index**\ (\ joint_idx\: :ref:`int<class_int>`, bone_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_bone_index>`
  230. Sets the bone index, ``bone_idx``, of the Jiggle joint at ``joint_idx``. When possible, this will also update the ``bone2d_node`` of the Jiggle joint based on data provided by the linked skeleton.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_damping:
  234. .. rst-class:: classref-method
  235. |void| **set_jiggle_joint_damping**\ (\ joint_idx\: :ref:`int<class_int>`, damping\: :ref:`float<class_float>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_damping>`
  236. Sets the amount of damping of the Jiggle joint at ``joint_idx``.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_gravity:
  240. .. rst-class:: classref-method
  241. |void| **set_jiggle_joint_gravity**\ (\ joint_idx\: :ref:`int<class_int>`, gravity\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_gravity>`
  242. Sets the gravity vector of the Jiggle joint at ``joint_idx``.
  243. .. rst-class:: classref-item-separator
  244. ----
  245. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_mass:
  246. .. rst-class:: classref-method
  247. |void| **set_jiggle_joint_mass**\ (\ joint_idx\: :ref:`int<class_int>`, mass\: :ref:`float<class_float>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_mass>`
  248. Sets the of mass of the Jiggle joint at ``joint_idx``.
  249. .. rst-class:: classref-item-separator
  250. ----
  251. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_override:
  252. .. rst-class:: classref-method
  253. |void| **set_jiggle_joint_override**\ (\ joint_idx\: :ref:`int<class_int>`, override\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_override>`
  254. Sets whether the Jiggle joint at ``joint_idx`` should override the default Jiggle joint settings. Setting this to ``true`` will make the joint use its own settings rather than the default ones attached to the modification.
  255. .. rst-class:: classref-item-separator
  256. ----
  257. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_stiffness:
  258. .. rst-class:: classref-method
  259. |void| **set_jiggle_joint_stiffness**\ (\ joint_idx\: :ref:`int<class_int>`, stiffness\: :ref:`float<class_float>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_stiffness>`
  260. Sets the of stiffness of the Jiggle joint at ``joint_idx``.
  261. .. rst-class:: classref-item-separator
  262. ----
  263. .. _class_SkeletonModification2DJiggle_method_set_jiggle_joint_use_gravity:
  264. .. rst-class:: classref-method
  265. |void| **set_jiggle_joint_use_gravity**\ (\ joint_idx\: :ref:`int<class_int>`, use_gravity\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_jiggle_joint_use_gravity>`
  266. Sets whether the Jiggle joint at ``joint_idx`` should use gravity.
  267. .. rst-class:: classref-item-separator
  268. ----
  269. .. _class_SkeletonModification2DJiggle_method_set_use_colliders:
  270. .. rst-class:: classref-method
  271. |void| **set_use_colliders**\ (\ use_colliders\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_SkeletonModification2DJiggle_method_set_use_colliders>`
  272. If ``true``, the Jiggle modifier will take colliders into account, keeping them from entering into these collision objects.
  273. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  274. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  275. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  276. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  277. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  278. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  279. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  280. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  281. .. |void| replace:: :abbr:`void (No return value.)`