class_physicsdirectbodystate.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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_central_force<class_PhysicsDirectBodyState_add_central_force>` **(** :ref:`Vector3<class_vector3>` force **)** |
  16. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`add_force<class_PhysicsDirectBodyState_add_force>` **(** :ref:`Vector3<class_vector3>` force, :ref:`Vector3<class_vector3>` position **)** |
  18. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`add_torque<class_PhysicsDirectBodyState_add_torque>` **(** :ref:`Vector3<class_vector3>` torque **)** |
  20. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`apply_impulse<class_PhysicsDirectBodyState_apply_impulse>` **(** :ref:`Vector3<class_vector3>` position, :ref:`Vector3<class_vector3>` j **)** |
  22. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`apply_torque_impulse<class_PhysicsDirectBodyState_apply_torque_impulse>` **(** :ref:`Vector3<class_vector3>` j **)** |
  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:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` | :ref:`get_space_state<class_PhysicsDirectBodyState_get_space_state>` **(** **)** |
  46. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`integrate_forces<class_PhysicsDirectBodyState_integrate_forces>` **(** **)** |
  48. +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. Member Variables
  50. ----------------
  51. .. _class_PhysicsDirectBodyState_angular_velocity:
  52. - :ref:`Vector3<class_vector3>` **angular_velocity** - The angular velocity of the body.
  53. .. _class_PhysicsDirectBodyState_center_of_mass:
  54. - :ref:`Vector3<class_vector3>` **center_of_mass**
  55. .. _class_PhysicsDirectBodyState_inverse_inertia:
  56. - :ref:`Vector3<class_vector3>` **inverse_inertia** - The inverse of the inertia of the body.
  57. .. _class_PhysicsDirectBodyState_inverse_mass:
  58. - :ref:`float<class_float>` **inverse_mass** - The inverse of the mass of the body.
  59. .. _class_PhysicsDirectBodyState_linear_velocity:
  60. - :ref:`Vector3<class_vector3>` **linear_velocity** - The linear velocity of the body.
  61. .. _class_PhysicsDirectBodyState_principal_inertia_axes:
  62. - :ref:`Basis<class_basis>` **principal_inertia_axes**
  63. .. _class_PhysicsDirectBodyState_sleeping:
  64. - :ref:`bool<class_bool>` **sleeping** - ``true`` if this body is currently sleeping (not active).
  65. .. _class_PhysicsDirectBodyState_step:
  66. - :ref:`float<class_float>` **step** - The timestep (delta) used for the simulation.
  67. .. _class_PhysicsDirectBodyState_total_angular_damp:
  68. - :ref:`float<class_float>` **total_angular_damp** - The rate at which the body stops rotating, if there are not any other forces moving it.
  69. .. _class_PhysicsDirectBodyState_total_gravity:
  70. - :ref:`Vector3<class_vector3>` **total_gravity** - The total gravity vector being currently applied to this body.
  71. .. _class_PhysicsDirectBodyState_total_linear_damp:
  72. - :ref:`float<class_float>` **total_linear_damp** - The rate at which the body stops moving, if there are not any other forces moving it.
  73. .. _class_PhysicsDirectBodyState_transform:
  74. - :ref:`Transform<class_transform>` **transform** - The transformation matrix of the body.
  75. Member Function Description
  76. ---------------------------
  77. .. _class_PhysicsDirectBodyState_add_central_force:
  78. - void **add_central_force** **(** :ref:`Vector3<class_vector3>` force **)**
  79. .. _class_PhysicsDirectBodyState_add_force:
  80. - void **add_force** **(** :ref:`Vector3<class_vector3>` force, :ref:`Vector3<class_vector3>` position **)**
  81. .. _class_PhysicsDirectBodyState_add_torque:
  82. - void **add_torque** **(** :ref:`Vector3<class_vector3>` torque **)**
  83. .. _class_PhysicsDirectBodyState_apply_impulse:
  84. - void **apply_impulse** **(** :ref:`Vector3<class_vector3>` position, :ref:`Vector3<class_vector3>` j **)**
  85. .. _class_PhysicsDirectBodyState_apply_torque_impulse:
  86. - void **apply_torque_impulse** **(** :ref:`Vector3<class_vector3>` j **)**
  87. .. _class_PhysicsDirectBodyState_get_contact_collider:
  88. - :ref:`RID<class_rid>` **get_contact_collider** **(** :ref:`int<class_int>` contact_idx **)** const
  89. .. _class_PhysicsDirectBodyState_get_contact_collider_id:
  90. - :ref:`int<class_int>` **get_contact_collider_id** **(** :ref:`int<class_int>` contact_idx **)** const
  91. .. _class_PhysicsDirectBodyState_get_contact_collider_object:
  92. - :ref:`Object<class_object>` **get_contact_collider_object** **(** :ref:`int<class_int>` contact_idx **)** const
  93. .. _class_PhysicsDirectBodyState_get_contact_collider_position:
  94. - :ref:`Vector3<class_vector3>` **get_contact_collider_position** **(** :ref:`int<class_int>` contact_idx **)** const
  95. .. _class_PhysicsDirectBodyState_get_contact_collider_shape:
  96. - :ref:`int<class_int>` **get_contact_collider_shape** **(** :ref:`int<class_int>` contact_idx **)** const
  97. .. _class_PhysicsDirectBodyState_get_contact_collider_velocity_at_position:
  98. - :ref:`Vector3<class_vector3>` **get_contact_collider_velocity_at_position** **(** :ref:`int<class_int>` contact_idx **)** const
  99. .. _class_PhysicsDirectBodyState_get_contact_count:
  100. - :ref:`int<class_int>` **get_contact_count** **(** **)** const
  101. .. _class_PhysicsDirectBodyState_get_contact_local_normal:
  102. - :ref:`Vector3<class_vector3>` **get_contact_local_normal** **(** :ref:`int<class_int>` contact_idx **)** const
  103. .. _class_PhysicsDirectBodyState_get_contact_local_position:
  104. - :ref:`Vector3<class_vector3>` **get_contact_local_position** **(** :ref:`int<class_int>` contact_idx **)** const
  105. .. _class_PhysicsDirectBodyState_get_contact_local_shape:
  106. - :ref:`int<class_int>` **get_contact_local_shape** **(** :ref:`int<class_int>` contact_idx **)** const
  107. .. _class_PhysicsDirectBodyState_get_space_state:
  108. - :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>` **get_space_state** **(** **)**
  109. .. _class_PhysicsDirectBodyState_integrate_forces:
  110. - void **integrate_forces** **(** **)**