class_physicspointqueryparameters3d.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 PhysicsPointQueryParameters3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PhysicsPointQueryParameters3D:
  6. PhysicsPointQueryParameters3D
  7. =============================
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Parameters to be sent to a 3D point physics query.
  10. Description
  11. -----------
  12. This class contains the position and other parameters to be used for :ref:`PhysicsDirectSpaceState3D.intersect_point<class_PhysicsDirectSpaceState3D_method_intersect_point>`.
  13. Properties
  14. ----------
  15. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  16. | :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsPointQueryParameters3D_property_collide_with_areas>` | ``false`` |
  17. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  18. | :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsPointQueryParameters3D_property_collide_with_bodies>` | ``true`` |
  19. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  20. | :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsPointQueryParameters3D_property_collision_mask>` | ``4294967295`` |
  21. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  22. | :ref:`Array<class_Array>` | :ref:`exclude<class_PhysicsPointQueryParameters3D_property_exclude>` | ``[]`` |
  23. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  24. | :ref:`Vector3<class_Vector3>` | :ref:`position<class_PhysicsPointQueryParameters3D_property_position>` | ``Vector3(0, 0, 0)`` |
  25. +-------------------------------+----------------------------------------------------------------------------------------------+----------------------+
  26. Property Descriptions
  27. ---------------------
  28. .. _class_PhysicsPointQueryParameters3D_property_collide_with_areas:
  29. - :ref:`bool<class_bool>` **collide_with_areas**
  30. +-----------+---------------------------------+
  31. | *Default* | ``false`` |
  32. +-----------+---------------------------------+
  33. | *Setter* | set_collide_with_areas(value) |
  34. +-----------+---------------------------------+
  35. | *Getter* | is_collide_with_areas_enabled() |
  36. +-----------+---------------------------------+
  37. If ``true``, the query will take :ref:`Area3D<class_Area3D>`\ s into account.
  38. ----
  39. .. _class_PhysicsPointQueryParameters3D_property_collide_with_bodies:
  40. - :ref:`bool<class_bool>` **collide_with_bodies**
  41. +-----------+----------------------------------+
  42. | *Default* | ``true`` |
  43. +-----------+----------------------------------+
  44. | *Setter* | set_collide_with_bodies(value) |
  45. +-----------+----------------------------------+
  46. | *Getter* | is_collide_with_bodies_enabled() |
  47. +-----------+----------------------------------+
  48. If ``true``, the query will take :ref:`PhysicsBody3D<class_PhysicsBody3D>`\ s into account.
  49. ----
  50. .. _class_PhysicsPointQueryParameters3D_property_collision_mask:
  51. - :ref:`int<class_int>` **collision_mask**
  52. +-----------+---------------------------+
  53. | *Default* | ``4294967295`` |
  54. +-----------+---------------------------+
  55. | *Setter* | set_collision_mask(value) |
  56. +-----------+---------------------------+
  57. | *Getter* | get_collision_mask() |
  58. +-----------+---------------------------+
  59. 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.
  60. ----
  61. .. _class_PhysicsPointQueryParameters3D_property_exclude:
  62. - :ref:`Array<class_Array>` **exclude**
  63. +-----------+--------------------+
  64. | *Default* | ``[]`` |
  65. +-----------+--------------------+
  66. | *Setter* | set_exclude(value) |
  67. +-----------+--------------------+
  68. | *Getter* | get_exclude() |
  69. +-----------+--------------------+
  70. The list of objects or object :ref:`RID<class_RID>`\ s that will be excluded from collisions.
  71. ----
  72. .. _class_PhysicsPointQueryParameters3D_property_position:
  73. - :ref:`Vector3<class_Vector3>` **position**
  74. +-----------+----------------------+
  75. | *Default* | ``Vector3(0, 0, 0)`` |
  76. +-----------+----------------------+
  77. | *Setter* | set_position(value) |
  78. +-----------+----------------------+
  79. | *Getter* | get_position() |
  80. +-----------+----------------------+
  81. The position being queried for, in global coordinates.
  82. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  83. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  84. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  85. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  86. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  87. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`