class_physicspointqueryparameters2d.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 PhysicsPointQueryParameters2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PhysicsPointQueryParameters2D:
  6. PhysicsPointQueryParameters2D
  7. =============================
  8. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Parameters to be sent to a 2D point physics query.
  10. Description
  11. -----------
  12. This class contains the position and other parameters to be used for :ref:`PhysicsDirectSpaceState2D.intersect_point<class_PhysicsDirectSpaceState2D_method_intersect_point>`.
  13. Properties
  14. ----------
  15. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  16. | :ref:`int<class_int>` | :ref:`canvas_instance_id<class_PhysicsPointQueryParameters2D_property_canvas_instance_id>` | ``0`` |
  17. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  18. | :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsPointQueryParameters2D_property_collide_with_areas>` | ``false`` |
  19. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  20. | :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsPointQueryParameters2D_property_collide_with_bodies>` | ``true`` |
  21. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  22. | :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsPointQueryParameters2D_property_collision_mask>` | ``4294967295`` |
  23. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  24. | :ref:`Array<class_Array>` | :ref:`exclude<class_PhysicsPointQueryParameters2D_property_exclude>` | ``[]`` |
  25. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  26. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_PhysicsPointQueryParameters2D_property_position>` | ``Vector2(0, 0)`` |
  27. +-------------------------------+----------------------------------------------------------------------------------------------+-------------------+
  28. Property Descriptions
  29. ---------------------
  30. .. _class_PhysicsPointQueryParameters2D_property_canvas_instance_id:
  31. - :ref:`int<class_int>` **canvas_instance_id**
  32. +-----------+-------------------------------+
  33. | *Default* | ``0`` |
  34. +-----------+-------------------------------+
  35. | *Setter* | set_canvas_instance_id(value) |
  36. +-----------+-------------------------------+
  37. | *Getter* | get_canvas_instance_id() |
  38. +-----------+-------------------------------+
  39. If different from ``0``, restricts the query to a specific canvas layer specified by its instance id. See :ref:`Object.get_instance_id<class_Object_method_get_instance_id>`.
  40. ----
  41. .. _class_PhysicsPointQueryParameters2D_property_collide_with_areas:
  42. - :ref:`bool<class_bool>` **collide_with_areas**
  43. +-----------+---------------------------------+
  44. | *Default* | ``false`` |
  45. +-----------+---------------------------------+
  46. | *Setter* | set_collide_with_areas(value) |
  47. +-----------+---------------------------------+
  48. | *Getter* | is_collide_with_areas_enabled() |
  49. +-----------+---------------------------------+
  50. If ``true``, the query will take :ref:`Area2D<class_Area2D>`\ s into account.
  51. ----
  52. .. _class_PhysicsPointQueryParameters2D_property_collide_with_bodies:
  53. - :ref:`bool<class_bool>` **collide_with_bodies**
  54. +-----------+----------------------------------+
  55. | *Default* | ``true`` |
  56. +-----------+----------------------------------+
  57. | *Setter* | set_collide_with_bodies(value) |
  58. +-----------+----------------------------------+
  59. | *Getter* | is_collide_with_bodies_enabled() |
  60. +-----------+----------------------------------+
  61. If ``true``, the query will take :ref:`PhysicsBody2D<class_PhysicsBody2D>`\ s into account.
  62. ----
  63. .. _class_PhysicsPointQueryParameters2D_property_collision_mask:
  64. - :ref:`int<class_int>` **collision_mask**
  65. +-----------+---------------------------+
  66. | *Default* | ``4294967295`` |
  67. +-----------+---------------------------+
  68. | *Setter* | set_collision_mask(value) |
  69. +-----------+---------------------------+
  70. | *Getter* | get_collision_mask() |
  71. +-----------+---------------------------+
  72. 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.
  73. ----
  74. .. _class_PhysicsPointQueryParameters2D_property_exclude:
  75. - :ref:`Array<class_Array>` **exclude**
  76. +-----------+--------------------+
  77. | *Default* | ``[]`` |
  78. +-----------+--------------------+
  79. | *Setter* | set_exclude(value) |
  80. +-----------+--------------------+
  81. | *Getter* | get_exclude() |
  82. +-----------+--------------------+
  83. The list of objects or object :ref:`RID<class_RID>`\ s that will be excluded from collisions.
  84. ----
  85. .. _class_PhysicsPointQueryParameters2D_property_position:
  86. - :ref:`Vector2<class_Vector2>` **position**
  87. +-----------+---------------------+
  88. | *Default* | ``Vector2(0, 0)`` |
  89. +-----------+---------------------+
  90. | *Setter* | set_position(value) |
  91. +-----------+---------------------+
  92. | *Getter* | get_position() |
  93. +-----------+---------------------+
  94. The position being queried for, in global coordinates.
  95. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  96. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  97. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  98. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  99. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  100. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`