class_physics2dshapequeryparameters.rst 6.4 KB

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