class_physicsrayqueryparameters3d.rst 8.1 KB

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