class_physicalbone.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PhysicalBone.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PhysicalBone:
  6. PhysicalBone
  7. ============
  8. **Inherits:** :ref:`PhysicsBody<class_PhysicsBody>` **<** :ref:`CollisionObject<class_CollisionObject>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Properties
  13. ----------
  14. +-----------------------------------------------+-----------------------------------------------------------------+
  15. | :ref:`Transform<class_Transform>` | :ref:`body_offset<class_PhysicalBone_property_body_offset>` |
  16. +-----------------------------------------------+-----------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`bounce<class_PhysicalBone_property_bounce>` |
  18. +-----------------------------------------------+-----------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`friction<class_PhysicalBone_property_friction>` |
  20. +-----------------------------------------------+-----------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`gravity_scale<class_PhysicalBone_property_gravity_scale>` |
  22. +-----------------------------------------------+-----------------------------------------------------------------+
  23. | :ref:`Transform<class_Transform>` | :ref:`joint_offset<class_PhysicalBone_property_joint_offset>` |
  24. +-----------------------------------------------+-----------------------------------------------------------------+
  25. | :ref:`JointType<enum_PhysicalBone_JointType>` | :ref:`joint_type<class_PhysicalBone_property_joint_type>` |
  26. +-----------------------------------------------+-----------------------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`mass<class_PhysicalBone_property_mass>` |
  28. +-----------------------------------------------+-----------------------------------------------------------------+
  29. | :ref:`float<class_float>` | :ref:`weight<class_PhysicalBone_property_weight>` |
  30. +-----------------------------------------------+-----------------------------------------------------------------+
  31. Methods
  32. -------
  33. +-------------------------+-------------------------------------------------------------------------------------------+
  34. | :ref:`int<class_int>` | :ref:`get_bone_id<class_PhysicalBone_method_get_bone_id>` **(** **)** const |
  35. +-------------------------+-------------------------------------------------------------------------------------------+
  36. | :ref:`bool<class_bool>` | :ref:`get_simulate_physics<class_PhysicalBone_method_get_simulate_physics>` **(** **)** |
  37. +-------------------------+-------------------------------------------------------------------------------------------+
  38. | :ref:`bool<class_bool>` | :ref:`is_simulating_physics<class_PhysicalBone_method_is_simulating_physics>` **(** **)** |
  39. +-------------------------+-------------------------------------------------------------------------------------------+
  40. | :ref:`bool<class_bool>` | :ref:`is_static_body<class_PhysicalBone_method_is_static_body>` **(** **)** |
  41. +-------------------------+-------------------------------------------------------------------------------------------+
  42. Enumerations
  43. ------------
  44. .. _enum_PhysicalBone_JointType:
  45. .. _class_PhysicalBone_constant_JOINT_TYPE_NONE:
  46. .. _class_PhysicalBone_constant_JOINT_TYPE_PIN:
  47. .. _class_PhysicalBone_constant_JOINT_TYPE_CONE:
  48. .. _class_PhysicalBone_constant_JOINT_TYPE_HINGE:
  49. .. _class_PhysicalBone_constant_JOINT_TYPE_SLIDER:
  50. .. _class_PhysicalBone_constant_JOINT_TYPE_6DOF:
  51. enum **JointType**:
  52. - **JOINT_TYPE_NONE** = **0**
  53. - **JOINT_TYPE_PIN** = **1**
  54. - **JOINT_TYPE_CONE** = **2**
  55. - **JOINT_TYPE_HINGE** = **3**
  56. - **JOINT_TYPE_SLIDER** = **4**
  57. - **JOINT_TYPE_6DOF** = **5**
  58. Property Descriptions
  59. ---------------------
  60. .. _class_PhysicalBone_property_body_offset:
  61. - :ref:`Transform<class_Transform>` **body_offset**
  62. +----------+------------------------+
  63. | *Setter* | set_body_offset(value) |
  64. +----------+------------------------+
  65. | *Getter* | get_body_offset() |
  66. +----------+------------------------+
  67. ----
  68. .. _class_PhysicalBone_property_bounce:
  69. - :ref:`float<class_float>` **bounce**
  70. +----------+-------------------+
  71. | *Setter* | set_bounce(value) |
  72. +----------+-------------------+
  73. | *Getter* | get_bounce() |
  74. +----------+-------------------+
  75. ----
  76. .. _class_PhysicalBone_property_friction:
  77. - :ref:`float<class_float>` **friction**
  78. +----------+---------------------+
  79. | *Setter* | set_friction(value) |
  80. +----------+---------------------+
  81. | *Getter* | get_friction() |
  82. +----------+---------------------+
  83. ----
  84. .. _class_PhysicalBone_property_gravity_scale:
  85. - :ref:`float<class_float>` **gravity_scale**
  86. +----------+--------------------------+
  87. | *Setter* | set_gravity_scale(value) |
  88. +----------+--------------------------+
  89. | *Getter* | get_gravity_scale() |
  90. +----------+--------------------------+
  91. ----
  92. .. _class_PhysicalBone_property_joint_offset:
  93. - :ref:`Transform<class_Transform>` **joint_offset**
  94. +----------+-------------------------+
  95. | *Setter* | set_joint_offset(value) |
  96. +----------+-------------------------+
  97. | *Getter* | get_joint_offset() |
  98. +----------+-------------------------+
  99. ----
  100. .. _class_PhysicalBone_property_joint_type:
  101. - :ref:`JointType<enum_PhysicalBone_JointType>` **joint_type**
  102. +----------+-----------------------+
  103. | *Setter* | set_joint_type(value) |
  104. +----------+-----------------------+
  105. | *Getter* | get_joint_type() |
  106. +----------+-----------------------+
  107. ----
  108. .. _class_PhysicalBone_property_mass:
  109. - :ref:`float<class_float>` **mass**
  110. +----------+-----------------+
  111. | *Setter* | set_mass(value) |
  112. +----------+-----------------+
  113. | *Getter* | get_mass() |
  114. +----------+-----------------+
  115. ----
  116. .. _class_PhysicalBone_property_weight:
  117. - :ref:`float<class_float>` **weight**
  118. +----------+-------------------+
  119. | *Setter* | set_weight(value) |
  120. +----------+-------------------+
  121. | *Getter* | get_weight() |
  122. +----------+-------------------+
  123. Method Descriptions
  124. -------------------
  125. .. _class_PhysicalBone_method_get_bone_id:
  126. - :ref:`int<class_int>` **get_bone_id** **(** **)** const
  127. ----
  128. .. _class_PhysicalBone_method_get_simulate_physics:
  129. - :ref:`bool<class_bool>` **get_simulate_physics** **(** **)**
  130. ----
  131. .. _class_PhysicalBone_method_is_simulating_physics:
  132. - :ref:`bool<class_bool>` **is_simulating_physics** **(** **)**
  133. ----
  134. .. _class_PhysicalBone_method_is_static_body:
  135. - :ref:`bool<class_bool>` **is_static_body** **(** **)**