class_physicalbone.rst 6.7 KB

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