class_physicsdirectbodystate.rst 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PhysicsDirectBodyState.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PhysicsDirectBodyState:
  5. PhysicsDirectBodyState
  6. ======================
  7. **Inherits:** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`BulletPhysicsDirectBodyState<class_bulletphysicsdirectbodystate>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Member Functions
  13. ----------------
  14. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`add_force<class_PhysicsDirectBodyState_add_force>` **(** :ref:`Vector3<class_vector3>` force, :ref:`Vector3<class_vector3>` position **)** |
  16. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`apply_impulse<class_PhysicsDirectBodyState_apply_impulse>` **(** :ref:`Vector3<class_vector3>` position, :ref:`Vector3<class_vector3>` j **)** |
  18. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`apply_torqe_impulse<class_PhysicsDirectBodyState_apply_torqe_impulse>` **(** :ref:`Vector3<class_vector3>` j **)** |
  20. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Vector3<class_vector3>` | :ref:`get_angular_velocity<class_PhysicsDirectBodyState_get_angular_velocity>` **(** **)** const |
  22. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Vector3<class_vector3>` | :ref:`get_center_of_mass<class_PhysicsDirectBodyState_get_center_of_mass>` **(** **)** const |
  24. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`RID<class_rid>` | :ref:`get_contact_collider<class_PhysicsDirectBodyState_get_contact_collider>` **(** :ref:`int<class_int>` contact_idx **)** const |
  26. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`get_contact_collider_id<class_PhysicsDirectBodyState_get_contact_collider_id>` **(** :ref:`int<class_int>` contact_idx **)** const |
  28. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`Object<class_object>` | :ref:`get_contact_collider_object<class_PhysicsDirectBodyState_get_contact_collider_object>` **(** :ref:`int<class_int>` contact_idx **)** const |
  30. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Vector3<class_vector3>` | :ref:`get_contact_collider_position<class_PhysicsDirectBodyState_get_contact_collider_position>` **(** :ref:`int<class_int>` contact_idx **)** const |
  32. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`get_contact_collider_shape<class_PhysicsDirectBodyState_get_contact_collider_shape>` **(** :ref:`int<class_int>` contact_idx **)** const |
  34. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`Vector3<class_vector3>` | :ref:`get_contact_collider_velocity_at_position<class_PhysicsDirectBodyState_get_contact_collider_velocity_at_position>` **(** :ref:`int<class_int>` contact_idx **)** const |
  36. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`int<class_int>` | :ref:`get_contact_count<class_PhysicsDirectBodyState_get_contact_count>` **(** **)** const |
  38. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`Vector3<class_vector3>` | :ref:`get_contact_local_normal<class_PhysicsDirectBodyState_get_contact_local_normal>` **(** :ref:`int<class_int>` contact_idx **)** const |
  40. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`Vector3<class_vector3>` | :ref:`get_contact_local_position<class_PhysicsDirectBodyState_get_contact_local_position>` **(** :ref:`int<class_int>` contact_idx **)** const |
  42. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`int<class_int>` | :ref:`get_contact_local_shape<class_PhysicsDirectBodyState_get_contact_local_shape>` **(** :ref:`int<class_int>` contact_idx **)** const |
  44. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Vector3<class_vector3>` | :ref:`get_inverse_inertia<class_PhysicsDirectBodyState_get_inverse_inertia>` **(** **)** const |
  46. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`float<class_float>` | :ref:`get_inverse_mass<class_PhysicsDirectBodyState_get_inverse_mass>` **(** **)** const |
  48. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`Vector3<class_vector3>` | :ref:`get_linear_velocity<class_PhysicsDirectBodyState_get_linear_velocity>` **(** **)** const |
  50. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`Basis<class_basis>` | :ref:`get_principal_inertia_axes<class_PhysicsDirectBodyState_get_principal_inertia_axes>` **(** **)** const |
  52. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` | :ref:`get_space_state<class_PhysicsDirectBodyState_get_space_state>` **(** **)** |
  54. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`float<class_float>` | :ref:`get_step<class_PhysicsDirectBodyState_get_step>` **(** **)** const |
  56. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`float<class_float>` | :ref:`get_total_angular_damp<class_PhysicsDirectBodyState_get_total_angular_damp>` **(** **)** const |
  58. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Vector3<class_vector3>` | :ref:`get_total_gravity<class_PhysicsDirectBodyState_get_total_gravity>` **(** **)** const |
  60. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`get_total_linear_damp<class_PhysicsDirectBodyState_get_total_linear_damp>` **(** **)** const |
  62. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`Transform<class_transform>` | :ref:`get_transform<class_PhysicsDirectBodyState_get_transform>` **(** **)** const |
  64. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`integrate_forces<class_PhysicsDirectBodyState_integrate_forces>` **(** **)** |
  66. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`is_sleeping<class_PhysicsDirectBodyState_is_sleeping>` **(** **)** const |
  68. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_angular_velocity<class_PhysicsDirectBodyState_set_angular_velocity>` **(** :ref:`Vector3<class_vector3>` velocity **)** |
  70. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_linear_velocity<class_PhysicsDirectBodyState_set_linear_velocity>` **(** :ref:`Vector3<class_vector3>` velocity **)** |
  72. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_sleep_state<class_PhysicsDirectBodyState_set_sleep_state>` **(** :ref:`bool<class_bool>` enabled **)** |
  74. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_transform<class_PhysicsDirectBodyState_set_transform>` **(** :ref:`Transform<class_transform>` transform **)** |
  76. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. Member Function Description
  78. ---------------------------
  79. .. _class_PhysicsDirectBodyState_add_force:
  80. - void **add_force** **(** :ref:`Vector3<class_vector3>` force, :ref:`Vector3<class_vector3>` position **)**
  81. .. _class_PhysicsDirectBodyState_apply_impulse:
  82. - void **apply_impulse** **(** :ref:`Vector3<class_vector3>` position, :ref:`Vector3<class_vector3>` j **)**
  83. .. _class_PhysicsDirectBodyState_apply_torqe_impulse:
  84. - void **apply_torqe_impulse** **(** :ref:`Vector3<class_vector3>` j **)**
  85. .. _class_PhysicsDirectBodyState_get_angular_velocity:
  86. - :ref:`Vector3<class_vector3>` **get_angular_velocity** **(** **)** const
  87. .. _class_PhysicsDirectBodyState_get_center_of_mass:
  88. - :ref:`Vector3<class_vector3>` **get_center_of_mass** **(** **)** const
  89. .. _class_PhysicsDirectBodyState_get_contact_collider:
  90. - :ref:`RID<class_rid>` **get_contact_collider** **(** :ref:`int<class_int>` contact_idx **)** const
  91. .. _class_PhysicsDirectBodyState_get_contact_collider_id:
  92. - :ref:`int<class_int>` **get_contact_collider_id** **(** :ref:`int<class_int>` contact_idx **)** const
  93. .. _class_PhysicsDirectBodyState_get_contact_collider_object:
  94. - :ref:`Object<class_object>` **get_contact_collider_object** **(** :ref:`int<class_int>` contact_idx **)** const
  95. .. _class_PhysicsDirectBodyState_get_contact_collider_position:
  96. - :ref:`Vector3<class_vector3>` **get_contact_collider_position** **(** :ref:`int<class_int>` contact_idx **)** const
  97. .. _class_PhysicsDirectBodyState_get_contact_collider_shape:
  98. - :ref:`int<class_int>` **get_contact_collider_shape** **(** :ref:`int<class_int>` contact_idx **)** const
  99. .. _class_PhysicsDirectBodyState_get_contact_collider_velocity_at_position:
  100. - :ref:`Vector3<class_vector3>` **get_contact_collider_velocity_at_position** **(** :ref:`int<class_int>` contact_idx **)** const
  101. .. _class_PhysicsDirectBodyState_get_contact_count:
  102. - :ref:`int<class_int>` **get_contact_count** **(** **)** const
  103. .. _class_PhysicsDirectBodyState_get_contact_local_normal:
  104. - :ref:`Vector3<class_vector3>` **get_contact_local_normal** **(** :ref:`int<class_int>` contact_idx **)** const
  105. .. _class_PhysicsDirectBodyState_get_contact_local_position:
  106. - :ref:`Vector3<class_vector3>` **get_contact_local_position** **(** :ref:`int<class_int>` contact_idx **)** const
  107. .. _class_PhysicsDirectBodyState_get_contact_local_shape:
  108. - :ref:`int<class_int>` **get_contact_local_shape** **(** :ref:`int<class_int>` contact_idx **)** const
  109. .. _class_PhysicsDirectBodyState_get_inverse_inertia:
  110. - :ref:`Vector3<class_vector3>` **get_inverse_inertia** **(** **)** const
  111. .. _class_PhysicsDirectBodyState_get_inverse_mass:
  112. - :ref:`float<class_float>` **get_inverse_mass** **(** **)** const
  113. .. _class_PhysicsDirectBodyState_get_linear_velocity:
  114. - :ref:`Vector3<class_vector3>` **get_linear_velocity** **(** **)** const
  115. .. _class_PhysicsDirectBodyState_get_principal_inertia_axes:
  116. - :ref:`Basis<class_basis>` **get_principal_inertia_axes** **(** **)** const
  117. .. _class_PhysicsDirectBodyState_get_space_state:
  118. - :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` **get_space_state** **(** **)**
  119. .. _class_PhysicsDirectBodyState_get_step:
  120. - :ref:`float<class_float>` **get_step** **(** **)** const
  121. .. _class_PhysicsDirectBodyState_get_total_angular_damp:
  122. - :ref:`float<class_float>` **get_total_angular_damp** **(** **)** const
  123. .. _class_PhysicsDirectBodyState_get_total_gravity:
  124. - :ref:`Vector3<class_vector3>` **get_total_gravity** **(** **)** const
  125. .. _class_PhysicsDirectBodyState_get_total_linear_damp:
  126. - :ref:`float<class_float>` **get_total_linear_damp** **(** **)** const
  127. .. _class_PhysicsDirectBodyState_get_transform:
  128. - :ref:`Transform<class_transform>` **get_transform** **(** **)** const
  129. .. _class_PhysicsDirectBodyState_integrate_forces:
  130. - void **integrate_forces** **(** **)**
  131. .. _class_PhysicsDirectBodyState_is_sleeping:
  132. - :ref:`bool<class_bool>` **is_sleeping** **(** **)** const
  133. .. _class_PhysicsDirectBodyState_set_angular_velocity:
  134. - void **set_angular_velocity** **(** :ref:`Vector3<class_vector3>` velocity **)**
  135. .. _class_PhysicsDirectBodyState_set_linear_velocity:
  136. - void **set_linear_velocity** **(** :ref:`Vector3<class_vector3>` velocity **)**
  137. .. _class_PhysicsDirectBodyState_set_sleep_state:
  138. - void **set_sleep_state** **(** :ref:`bool<class_bool>` enabled **)**
  139. .. _class_PhysicsDirectBodyState_set_transform:
  140. - void **set_transform** **(** :ref:`Transform<class_transform>` transform **)**