class_physicalbone.rst 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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/PhysicalBone.xml.
  6. .. _class_PhysicalBone:
  7. PhysicalBone
  8. ============
  9. **Inherits:** :ref:`PhysicsBody<class_PhysicsBody>` **<** :ref:`CollisionObject<class_CollisionObject>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. .. rst-class:: classref-introduction-group
  11. Description
  12. -----------
  13. **Warning:** With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead.
  14. .. rst-class:: classref-reftable-group
  15. Properties
  16. ----------
  17. .. table::
  18. :widths: auto
  19. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  20. | :ref:`Transform<class_Transform>` | :ref:`body_offset<class_PhysicalBone_property_body_offset>` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  21. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`bounce<class_PhysicalBone_property_bounce>` | ``0.0`` |
  23. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`friction<class_PhysicalBone_property_friction>` | ``1.0`` |
  25. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`gravity_scale<class_PhysicalBone_property_gravity_scale>` | ``1.0`` |
  27. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  28. | :ref:`Transform<class_Transform>` | :ref:`joint_offset<class_PhysicalBone_property_joint_offset>` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  29. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  30. | :ref:`JointType<enum_PhysicalBone_JointType>` | :ref:`joint_type<class_PhysicalBone_property_joint_type>` | ``0`` |
  31. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  32. | :ref:`float<class_float>` | :ref:`mass<class_PhysicalBone_property_mass>` | ``1.0`` |
  33. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`weight<class_PhysicalBone_property_weight>` | ``9.8`` |
  35. +-----------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------+
  36. .. rst-class:: classref-reftable-group
  37. Methods
  38. -------
  39. .. table::
  40. :widths: auto
  41. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`apply_central_impulse<class_PhysicalBone_method_apply_central_impulse>` **(** :ref:`Vector3<class_Vector3>` impulse **)** |
  43. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | void | :ref:`apply_impulse<class_PhysicalBone_method_apply_impulse>` **(** :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` impulse **)** |
  45. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`int<class_int>` | :ref:`get_bone_id<class_PhysicalBone_method_get_bone_id>` **(** **)** |const| |
  47. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`bool<class_bool>` | :ref:`get_simulate_physics<class_PhysicalBone_method_get_simulate_physics>` **(** **)** |
  49. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`bool<class_bool>` | :ref:`is_simulating_physics<class_PhysicalBone_method_is_simulating_physics>` **(** **)** |
  51. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`bool<class_bool>` | :ref:`is_static_body<class_PhysicalBone_method_is_static_body>` **(** **)** |
  53. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. .. rst-class:: classref-section-separator
  55. ----
  56. .. rst-class:: classref-descriptions-group
  57. Enumerations
  58. ------------
  59. .. _enum_PhysicalBone_JointType:
  60. .. rst-class:: classref-enumeration
  61. enum **JointType**:
  62. .. _class_PhysicalBone_constant_JOINT_TYPE_NONE:
  63. .. rst-class:: classref-enumeration-constant
  64. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_NONE** = ``0``
  65. .. _class_PhysicalBone_constant_JOINT_TYPE_PIN:
  66. .. rst-class:: classref-enumeration-constant
  67. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_PIN** = ``1``
  68. .. _class_PhysicalBone_constant_JOINT_TYPE_CONE:
  69. .. rst-class:: classref-enumeration-constant
  70. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_CONE** = ``2``
  71. .. _class_PhysicalBone_constant_JOINT_TYPE_HINGE:
  72. .. rst-class:: classref-enumeration-constant
  73. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_HINGE** = ``3``
  74. .. _class_PhysicalBone_constant_JOINT_TYPE_SLIDER:
  75. .. rst-class:: classref-enumeration-constant
  76. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_SLIDER** = ``4``
  77. .. _class_PhysicalBone_constant_JOINT_TYPE_6DOF:
  78. .. rst-class:: classref-enumeration-constant
  79. :ref:`JointType<enum_PhysicalBone_JointType>` **JOINT_TYPE_6DOF** = ``5``
  80. .. rst-class:: classref-section-separator
  81. ----
  82. .. rst-class:: classref-descriptions-group
  83. Property Descriptions
  84. ---------------------
  85. .. _class_PhysicalBone_property_body_offset:
  86. .. rst-class:: classref-property
  87. :ref:`Transform<class_Transform>` **body_offset** = ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )``
  88. .. rst-class:: classref-property-setget
  89. - void **set_body_offset** **(** :ref:`Transform<class_Transform>` value **)**
  90. - :ref:`Transform<class_Transform>` **get_body_offset** **(** **)**
  91. .. container:: contribute
  92. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  93. .. rst-class:: classref-item-separator
  94. ----
  95. .. _class_PhysicalBone_property_bounce:
  96. .. rst-class:: classref-property
  97. :ref:`float<class_float>` **bounce** = ``0.0``
  98. .. rst-class:: classref-property-setget
  99. - void **set_bounce** **(** :ref:`float<class_float>` value **)**
  100. - :ref:`float<class_float>` **get_bounce** **(** **)**
  101. .. container:: contribute
  102. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_PhysicalBone_property_friction:
  106. .. rst-class:: classref-property
  107. :ref:`float<class_float>` **friction** = ``1.0``
  108. .. rst-class:: classref-property-setget
  109. - void **set_friction** **(** :ref:`float<class_float>` value **)**
  110. - :ref:`float<class_float>` **get_friction** **(** **)**
  111. .. container:: contribute
  112. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  113. .. rst-class:: classref-item-separator
  114. ----
  115. .. _class_PhysicalBone_property_gravity_scale:
  116. .. rst-class:: classref-property
  117. :ref:`float<class_float>` **gravity_scale** = ``1.0``
  118. .. rst-class:: classref-property-setget
  119. - void **set_gravity_scale** **(** :ref:`float<class_float>` value **)**
  120. - :ref:`float<class_float>` **get_gravity_scale** **(** **)**
  121. .. container:: contribute
  122. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_PhysicalBone_property_joint_offset:
  126. .. rst-class:: classref-property
  127. :ref:`Transform<class_Transform>` **joint_offset** = ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )``
  128. .. rst-class:: classref-property-setget
  129. - void **set_joint_offset** **(** :ref:`Transform<class_Transform>` value **)**
  130. - :ref:`Transform<class_Transform>` **get_joint_offset** **(** **)**
  131. .. container:: contribute
  132. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_PhysicalBone_property_joint_type:
  136. .. rst-class:: classref-property
  137. :ref:`JointType<enum_PhysicalBone_JointType>` **joint_type** = ``0``
  138. .. rst-class:: classref-property-setget
  139. - void **set_joint_type** **(** :ref:`JointType<enum_PhysicalBone_JointType>` value **)**
  140. - :ref:`JointType<enum_PhysicalBone_JointType>` **get_joint_type** **(** **)**
  141. .. container:: contribute
  142. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  143. .. rst-class:: classref-item-separator
  144. ----
  145. .. _class_PhysicalBone_property_mass:
  146. .. rst-class:: classref-property
  147. :ref:`float<class_float>` **mass** = ``1.0``
  148. .. rst-class:: classref-property-setget
  149. - void **set_mass** **(** :ref:`float<class_float>` value **)**
  150. - :ref:`float<class_float>` **get_mass** **(** **)**
  151. .. container:: contribute
  152. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  153. .. rst-class:: classref-item-separator
  154. ----
  155. .. _class_PhysicalBone_property_weight:
  156. .. rst-class:: classref-property
  157. :ref:`float<class_float>` **weight** = ``9.8``
  158. .. rst-class:: classref-property-setget
  159. - void **set_weight** **(** :ref:`float<class_float>` value **)**
  160. - :ref:`float<class_float>` **get_weight** **(** **)**
  161. .. container:: contribute
  162. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  163. .. rst-class:: classref-section-separator
  164. ----
  165. .. rst-class:: classref-descriptions-group
  166. Method Descriptions
  167. -------------------
  168. .. _class_PhysicalBone_method_apply_central_impulse:
  169. .. rst-class:: classref-method
  170. void **apply_central_impulse** **(** :ref:`Vector3<class_Vector3>` impulse **)**
  171. .. container:: contribute
  172. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  173. .. rst-class:: classref-item-separator
  174. ----
  175. .. _class_PhysicalBone_method_apply_impulse:
  176. .. rst-class:: classref-method
  177. void **apply_impulse** **(** :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` impulse **)**
  178. .. container:: contribute
  179. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  180. .. rst-class:: classref-item-separator
  181. ----
  182. .. _class_PhysicalBone_method_get_bone_id:
  183. .. rst-class:: classref-method
  184. :ref:`int<class_int>` **get_bone_id** **(** **)** |const|
  185. .. container:: contribute
  186. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  187. .. rst-class:: classref-item-separator
  188. ----
  189. .. _class_PhysicalBone_method_get_simulate_physics:
  190. .. rst-class:: classref-method
  191. :ref:`bool<class_bool>` **get_simulate_physics** **(** **)**
  192. .. container:: contribute
  193. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_PhysicalBone_method_is_simulating_physics:
  197. .. rst-class:: classref-method
  198. :ref:`bool<class_bool>` **is_simulating_physics** **(** **)**
  199. .. container:: contribute
  200. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  201. .. rst-class:: classref-item-separator
  202. ----
  203. .. _class_PhysicalBone_method_is_static_body:
  204. .. rst-class:: classref-method
  205. :ref:`bool<class_bool>` **is_static_body** **(** **)**
  206. .. container:: contribute
  207. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  208. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  209. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  210. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  211. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`