class_physicalbone.rst 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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>` | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
  16. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`bounce<class_PhysicalBone_property_bounce>` | 0.0 |
  18. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`friction<class_PhysicalBone_property_friction>` | 1.0 |
  20. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`gravity_scale<class_PhysicalBone_property_gravity_scale>` | 1.0 |
  22. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  23. | :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 ) |
  24. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  25. | :ref:`JointType<enum_PhysicalBone_JointType>` | :ref:`joint_type<class_PhysicalBone_property_joint_type>` | 0 |
  26. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`mass<class_PhysicalBone_property_mass>` | 1.0 |
  28. +-----------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------+
  29. | :ref:`float<class_float>` | :ref:`weight<class_PhysicalBone_property_weight>` | 9.8 |
  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. | *Default* | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
  64. +-----------+-------------------------------------------------+
  65. | *Setter* | set_body_offset(value) |
  66. +-----------+-------------------------------------------------+
  67. | *Getter* | get_body_offset() |
  68. +-----------+-------------------------------------------------+
  69. .. _class_PhysicalBone_property_bounce:
  70. - :ref:`float<class_float>` **bounce**
  71. +-----------+-------------------+
  72. | *Default* | 0.0 |
  73. +-----------+-------------------+
  74. | *Setter* | set_bounce(value) |
  75. +-----------+-------------------+
  76. | *Getter* | get_bounce() |
  77. +-----------+-------------------+
  78. .. _class_PhysicalBone_property_friction:
  79. - :ref:`float<class_float>` **friction**
  80. +-----------+---------------------+
  81. | *Default* | 1.0 |
  82. +-----------+---------------------+
  83. | *Setter* | set_friction(value) |
  84. +-----------+---------------------+
  85. | *Getter* | get_friction() |
  86. +-----------+---------------------+
  87. .. _class_PhysicalBone_property_gravity_scale:
  88. - :ref:`float<class_float>` **gravity_scale**
  89. +-----------+--------------------------+
  90. | *Default* | 1.0 |
  91. +-----------+--------------------------+
  92. | *Setter* | set_gravity_scale(value) |
  93. +-----------+--------------------------+
  94. | *Getter* | get_gravity_scale() |
  95. +-----------+--------------------------+
  96. .. _class_PhysicalBone_property_joint_offset:
  97. - :ref:`Transform<class_Transform>` **joint_offset**
  98. +-----------+-------------------------------------------------+
  99. | *Default* | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
  100. +-----------+-------------------------------------------------+
  101. | *Setter* | set_joint_offset(value) |
  102. +-----------+-------------------------------------------------+
  103. | *Getter* | get_joint_offset() |
  104. +-----------+-------------------------------------------------+
  105. .. _class_PhysicalBone_property_joint_type:
  106. - :ref:`JointType<enum_PhysicalBone_JointType>` **joint_type**
  107. +-----------+-----------------------+
  108. | *Default* | 0 |
  109. +-----------+-----------------------+
  110. | *Setter* | set_joint_type(value) |
  111. +-----------+-----------------------+
  112. | *Getter* | get_joint_type() |
  113. +-----------+-----------------------+
  114. .. _class_PhysicalBone_property_mass:
  115. - :ref:`float<class_float>` **mass**
  116. +-----------+-----------------+
  117. | *Default* | 1.0 |
  118. +-----------+-----------------+
  119. | *Setter* | set_mass(value) |
  120. +-----------+-----------------+
  121. | *Getter* | get_mass() |
  122. +-----------+-----------------+
  123. .. _class_PhysicalBone_property_weight:
  124. - :ref:`float<class_float>` **weight**
  125. +-----------+-------------------+
  126. | *Default* | 9.8 |
  127. +-----------+-------------------+
  128. | *Setter* | set_weight(value) |
  129. +-----------+-------------------+
  130. | *Getter* | get_weight() |
  131. +-----------+-------------------+
  132. Method Descriptions
  133. -------------------
  134. .. _class_PhysicalBone_method_get_bone_id:
  135. - :ref:`int<class_int>` **get_bone_id** **(** **)** const
  136. .. _class_PhysicalBone_method_get_simulate_physics:
  137. - :ref:`bool<class_bool>` **get_simulate_physics** **(** **)**
  138. .. _class_PhysicalBone_method_is_simulating_physics:
  139. - :ref:`bool<class_bool>` **is_simulating_physics** **(** **)**
  140. .. _class_PhysicalBone_method_is_static_body:
  141. - :ref:`bool<class_bool>` **is_static_body** **(** **)**