class_physics2dshapequeryparameters.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Physics2DShapeQueryParameters.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Physics2DShapeQueryParameters:
  6. Physics2DShapeQueryParameters
  7. =============================
  8. **Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Parameters to be sent to a 2D shape physics query.
  13. Properties
  14. ----------
  15. +---------------------------------------+----------------------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_Physics2DShapeQueryParameters_property_collide_with_areas>` |
  17. +---------------------------------------+----------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_Physics2DShapeQueryParameters_property_collide_with_bodies>` |
  19. +---------------------------------------+----------------------------------------------------------------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`collision_layer<class_Physics2DShapeQueryParameters_property_collision_layer>` |
  21. +---------------------------------------+----------------------------------------------------------------------------------------------+
  22. | :ref:`Array<class_Array>` | :ref:`exclude<class_Physics2DShapeQueryParameters_property_exclude>` |
  23. +---------------------------------------+----------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`margin<class_Physics2DShapeQueryParameters_property_margin>` |
  25. +---------------------------------------+----------------------------------------------------------------------------------------------+
  26. | :ref:`Vector2<class_Vector2>` | :ref:`motion<class_Physics2DShapeQueryParameters_property_motion>` |
  27. +---------------------------------------+----------------------------------------------------------------------------------------------+
  28. | :ref:`RID<class_RID>` | :ref:`shape_rid<class_Physics2DShapeQueryParameters_property_shape_rid>` |
  29. +---------------------------------------+----------------------------------------------------------------------------------------------+
  30. | :ref:`Transform2D<class_Transform2D>` | :ref:`transform<class_Physics2DShapeQueryParameters_property_transform>` |
  31. +---------------------------------------+----------------------------------------------------------------------------------------------+
  32. Methods
  33. -------
  34. +------+--------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`set_shape<class_Physics2DShapeQueryParameters_method_set_shape>` **(** :ref:`Resource<class_Resource>` shape **)** |
  36. +------+--------------------------------------------------------------------------------------------------------------------------+
  37. Description
  38. -----------
  39. This class contains the shape and other parameters for intersection/collision queries.
  40. Property Descriptions
  41. ---------------------
  42. .. _class_Physics2DShapeQueryParameters_property_collide_with_areas:
  43. - :ref:`bool<class_bool>` **collide_with_areas**
  44. +----------+---------------------------------+
  45. | *Setter* | set_collide_with_areas(value) |
  46. +----------+---------------------------------+
  47. | *Getter* | is_collide_with_areas_enabled() |
  48. +----------+---------------------------------+
  49. ----
  50. .. _class_Physics2DShapeQueryParameters_property_collide_with_bodies:
  51. - :ref:`bool<class_bool>` **collide_with_bodies**
  52. +----------+----------------------------------+
  53. | *Setter* | set_collide_with_bodies(value) |
  54. +----------+----------------------------------+
  55. | *Getter* | is_collide_with_bodies_enabled() |
  56. +----------+----------------------------------+
  57. ----
  58. .. _class_Physics2DShapeQueryParameters_property_collision_layer:
  59. - :ref:`int<class_int>` **collision_layer**
  60. +----------+----------------------------+
  61. | *Setter* | set_collision_layer(value) |
  62. +----------+----------------------------+
  63. | *Getter* | get_collision_layer() |
  64. +----------+----------------------------+
  65. The physics layer the query should be made on.
  66. ----
  67. .. _class_Physics2DShapeQueryParameters_property_exclude:
  68. - :ref:`Array<class_Array>` **exclude**
  69. +----------+--------------------+
  70. | *Setter* | set_exclude(value) |
  71. +----------+--------------------+
  72. | *Getter* | get_exclude() |
  73. +----------+--------------------+
  74. The list of objects or object :ref:`RID<class_RID>`\ s, that will be excluded from collisions.
  75. ----
  76. .. _class_Physics2DShapeQueryParameters_property_margin:
  77. - :ref:`float<class_float>` **margin**
  78. +----------+-------------------+
  79. | *Setter* | set_margin(value) |
  80. +----------+-------------------+
  81. | *Getter* | get_margin() |
  82. +----------+-------------------+
  83. The collision margin for the shape.
  84. ----
  85. .. _class_Physics2DShapeQueryParameters_property_motion:
  86. - :ref:`Vector2<class_Vector2>` **motion**
  87. +----------+-------------------+
  88. | *Setter* | set_motion(value) |
  89. +----------+-------------------+
  90. | *Getter* | get_motion() |
  91. +----------+-------------------+
  92. The motion of the shape being queried for.
  93. ----
  94. .. _class_Physics2DShapeQueryParameters_property_shape_rid:
  95. - :ref:`RID<class_RID>` **shape_rid**
  96. +----------+----------------------+
  97. | *Setter* | set_shape_rid(value) |
  98. +----------+----------------------+
  99. | *Getter* | get_shape_rid() |
  100. +----------+----------------------+
  101. The :ref:`RID<class_RID>` of the queried shape. See :ref:`set_shape<class_Physics2DShapeQueryParameters_method_set_shape>` also.
  102. ----
  103. .. _class_Physics2DShapeQueryParameters_property_transform:
  104. - :ref:`Transform2D<class_Transform2D>` **transform**
  105. +----------+----------------------+
  106. | *Setter* | set_transform(value) |
  107. +----------+----------------------+
  108. | *Getter* | get_transform() |
  109. +----------+----------------------+
  110. the transform matrix of the queried shape.
  111. Method Descriptions
  112. -------------------
  113. .. _class_Physics2DShapeQueryParameters_method_set_shape:
  114. - void **set_shape** **(** :ref:`Resource<class_Resource>` shape **)**
  115. Set the :ref:`Shape2D<class_Shape2D>` that will be used for collision/intersection queries.