class_physicsrayqueryparameters3d.rst 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PhysicsRayQueryParameters3D.xml.
  6. .. _class_PhysicsRayQueryParameters3D:
  7. PhysicsRayQueryParameters3D
  8. ===========================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Parameters to be sent to a 3D ray physics query.
  11. Description
  12. -----------
  13. This class contains the ray position and other parameters to be used for :ref:`PhysicsDirectSpaceState3D.intersect_ray<class_PhysicsDirectSpaceState3D_method_intersect_ray>`.
  14. Properties
  15. ----------
  16. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  17. | :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsRayQueryParameters3D_property_collide_with_areas>` | ``false`` |
  18. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  19. | :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsRayQueryParameters3D_property_collide_with_bodies>` | ``true`` |
  20. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  21. | :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsRayQueryParameters3D_property_collision_mask>` | ``4294967295`` |
  22. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  23. | :ref:`Array<class_Array>` | :ref:`exclude<class_PhysicsRayQueryParameters3D_property_exclude>` | ``[]`` |
  24. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  25. | :ref:`Vector3<class_Vector3>` | :ref:`from<class_PhysicsRayQueryParameters3D_property_from>` | ``Vector3(0, 0, 0)`` |
  26. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  27. | :ref:`bool<class_bool>` | :ref:`hit_back_faces<class_PhysicsRayQueryParameters3D_property_hit_back_faces>` | ``true`` |
  28. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  29. | :ref:`bool<class_bool>` | :ref:`hit_from_inside<class_PhysicsRayQueryParameters3D_property_hit_from_inside>` | ``false`` |
  30. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  31. | :ref:`Vector3<class_Vector3>` | :ref:`to<class_PhysicsRayQueryParameters3D_property_to>` | ``Vector3(0, 0, 0)`` |
  32. +-------------------------------+--------------------------------------------------------------------------------------------+----------------------+
  33. Property Descriptions
  34. ---------------------
  35. .. _class_PhysicsRayQueryParameters3D_property_collide_with_areas:
  36. - :ref:`bool<class_bool>` **collide_with_areas**
  37. +-----------+---------------------------------+
  38. | *Default* | ``false`` |
  39. +-----------+---------------------------------+
  40. | *Setter* | set_collide_with_areas(value) |
  41. +-----------+---------------------------------+
  42. | *Getter* | is_collide_with_areas_enabled() |
  43. +-----------+---------------------------------+
  44. If ``true``, the query will take :ref:`Area3D<class_Area3D>`\ s into account.
  45. ----
  46. .. _class_PhysicsRayQueryParameters3D_property_collide_with_bodies:
  47. - :ref:`bool<class_bool>` **collide_with_bodies**
  48. +-----------+----------------------------------+
  49. | *Default* | ``true`` |
  50. +-----------+----------------------------------+
  51. | *Setter* | set_collide_with_bodies(value) |
  52. +-----------+----------------------------------+
  53. | *Getter* | is_collide_with_bodies_enabled() |
  54. +-----------+----------------------------------+
  55. If ``true``, the query will take :ref:`PhysicsBody3D<class_PhysicsBody3D>`\ s into account.
  56. ----
  57. .. _class_PhysicsRayQueryParameters3D_property_collision_mask:
  58. - :ref:`int<class_int>` **collision_mask**
  59. +-----------+---------------------------+
  60. | *Default* | ``4294967295`` |
  61. +-----------+---------------------------+
  62. | *Setter* | set_collision_mask(value) |
  63. +-----------+---------------------------+
  64. | *Getter* | get_collision_mask() |
  65. +-----------+---------------------------+
  66. The physics layers the query will detect (as a bitmask). By default, all collision layers are detected. See `Collision layers and masks <../tutorials/physics/physics_introduction.html#collision-layers-and-masks>`__ in the documentation for more information.
  67. ----
  68. .. _class_PhysicsRayQueryParameters3D_property_exclude:
  69. - :ref:`Array<class_Array>` **exclude**
  70. +-----------+--------------------+
  71. | *Default* | ``[]`` |
  72. +-----------+--------------------+
  73. | *Setter* | set_exclude(value) |
  74. +-----------+--------------------+
  75. | *Getter* | get_exclude() |
  76. +-----------+--------------------+
  77. The list of objects or object :ref:`RID<class_RID>`\ s that will be excluded from collisions.
  78. ----
  79. .. _class_PhysicsRayQueryParameters3D_property_from:
  80. - :ref:`Vector3<class_Vector3>` **from**
  81. +-----------+----------------------+
  82. | *Default* | ``Vector3(0, 0, 0)`` |
  83. +-----------+----------------------+
  84. | *Setter* | set_from(value) |
  85. +-----------+----------------------+
  86. | *Getter* | get_from() |
  87. +-----------+----------------------+
  88. The starting point of the ray being queried for, in global coordinates.
  89. ----
  90. .. _class_PhysicsRayQueryParameters3D_property_hit_back_faces:
  91. - :ref:`bool<class_bool>` **hit_back_faces**
  92. +-----------+-----------------------------+
  93. | *Default* | ``true`` |
  94. +-----------+-----------------------------+
  95. | *Setter* | set_hit_back_faces(value) |
  96. +-----------+-----------------------------+
  97. | *Getter* | is_hit_back_faces_enabled() |
  98. +-----------+-----------------------------+
  99. If ``true``, the query will hit back faces with concave polygon shapes with back face enabled or heightmap shapes.
  100. ----
  101. .. _class_PhysicsRayQueryParameters3D_property_hit_from_inside:
  102. - :ref:`bool<class_bool>` **hit_from_inside**
  103. +-----------+------------------------------+
  104. | *Default* | ``false`` |
  105. +-----------+------------------------------+
  106. | *Setter* | set_hit_from_inside(value) |
  107. +-----------+------------------------------+
  108. | *Getter* | is_hit_from_inside_enabled() |
  109. +-----------+------------------------------+
  110. If ``true``, the query will detect a hit when starting inside shapes. In this case the collision normal will be ``Vector3(0, 0, 0)``. Does not affect concave polygon shapes or heightmap shapes.
  111. ----
  112. .. _class_PhysicsRayQueryParameters3D_property_to:
  113. - :ref:`Vector3<class_Vector3>` **to**
  114. +-----------+----------------------+
  115. | *Default* | ``Vector3(0, 0, 0)`` |
  116. +-----------+----------------------+
  117. | *Setter* | set_to(value) |
  118. +-----------+----------------------+
  119. | *Getter* | get_to() |
  120. +-----------+----------------------+
  121. The ending point of the ray being queried for, in global coordinates.
  122. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  123. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  124. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  125. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  126. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  127. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`