class_physicsshapequeryparameters.rst 7.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 PhysicsShapeQueryParameters.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PhysicsShapeQueryParameters:
  6. PhysicsShapeQueryParameters
  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 3D shape physics query.
  13. Properties
  14. ----------
  15. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsShapeQueryParameters_property_collide_with_areas>` | false |
  17. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsShapeQueryParameters_property_collide_with_bodies>` | true |
  19. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsShapeQueryParameters_property_collision_mask>` | 2147483647 |
  21. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  22. | :ref:`Array<class_Array>` | :ref:`exclude<class_PhysicsShapeQueryParameters_property_exclude>` | [ ] |
  23. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`margin<class_PhysicsShapeQueryParameters_property_margin>` | 0.0 |
  25. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  26. | :ref:`RID<class_RID>` | :ref:`shape_rid<class_PhysicsShapeQueryParameters_property_shape_rid>` | |
  27. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  28. | :ref:`Transform<class_Transform>` | :ref:`transform<class_PhysicsShapeQueryParameters_property_transform>` | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
  29. +-----------------------------------+--------------------------------------------------------------------------------------------+-------------------------------------------------+
  30. Methods
  31. -------
  32. +------+------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_shape<class_PhysicsShapeQueryParameters_method_set_shape>` **(** :ref:`Resource<class_Resource>` shape **)** |
  34. +------+------------------------------------------------------------------------------------------------------------------------+
  35. Description
  36. -----------
  37. This class contains the shape and other parameters for 3D intersection/collision queries. See also :ref:`PhysicsShapeQueryResult<class_PhysicsShapeQueryResult>`.
  38. Property Descriptions
  39. ---------------------
  40. .. _class_PhysicsShapeQueryParameters_property_collide_with_areas:
  41. - :ref:`bool<class_bool>` **collide_with_areas**
  42. +-----------+---------------------------------+
  43. | *Default* | false |
  44. +-----------+---------------------------------+
  45. | *Setter* | set_collide_with_areas(value) |
  46. +-----------+---------------------------------+
  47. | *Getter* | is_collide_with_areas_enabled() |
  48. +-----------+---------------------------------+
  49. If ``true``, the query will take :ref:`Area<class_Area>`\ s into account.
  50. ----
  51. .. _class_PhysicsShapeQueryParameters_property_collide_with_bodies:
  52. - :ref:`bool<class_bool>` **collide_with_bodies**
  53. +-----------+----------------------------------+
  54. | *Default* | true |
  55. +-----------+----------------------------------+
  56. | *Setter* | set_collide_with_bodies(value) |
  57. +-----------+----------------------------------+
  58. | *Getter* | is_collide_with_bodies_enabled() |
  59. +-----------+----------------------------------+
  60. If ``true``, the query will take :ref:`PhysicsBody<class_PhysicsBody>`\ s into account.
  61. ----
  62. .. _class_PhysicsShapeQueryParameters_property_collision_mask:
  63. - :ref:`int<class_int>` **collision_mask**
  64. +-----------+---------------------------+
  65. | *Default* | 2147483647 |
  66. +-----------+---------------------------+
  67. | *Setter* | set_collision_mask(value) |
  68. +-----------+---------------------------+
  69. | *Getter* | get_collision_mask() |
  70. +-----------+---------------------------+
  71. The physics layer(s) the query will take into account (as a bitmask).
  72. ----
  73. .. _class_PhysicsShapeQueryParameters_property_exclude:
  74. - :ref:`Array<class_Array>` **exclude**
  75. +-----------+--------------------+
  76. | *Default* | [ ] |
  77. +-----------+--------------------+
  78. | *Setter* | set_exclude(value) |
  79. +-----------+--------------------+
  80. | *Getter* | get_exclude() |
  81. +-----------+--------------------+
  82. The list of objects or object :ref:`RID<class_RID>`\ s that will be excluded from collisions.
  83. ----
  84. .. _class_PhysicsShapeQueryParameters_property_margin:
  85. - :ref:`float<class_float>` **margin**
  86. +-----------+-------------------+
  87. | *Default* | 0.0 |
  88. +-----------+-------------------+
  89. | *Setter* | set_margin(value) |
  90. +-----------+-------------------+
  91. | *Getter* | get_margin() |
  92. +-----------+-------------------+
  93. The collision margin for the shape.
  94. ----
  95. .. _class_PhysicsShapeQueryParameters_property_shape_rid:
  96. - :ref:`RID<class_RID>` **shape_rid**
  97. +----------+----------------------+
  98. | *Setter* | set_shape_rid(value) |
  99. +----------+----------------------+
  100. | *Getter* | get_shape_rid() |
  101. +----------+----------------------+
  102. The queried shape's :ref:`RID<class_RID>`. See also :ref:`set_shape<class_PhysicsShapeQueryParameters_method_set_shape>`.
  103. ----
  104. .. _class_PhysicsShapeQueryParameters_property_transform:
  105. - :ref:`Transform<class_Transform>` **transform**
  106. +-----------+-------------------------------------------------+
  107. | *Default* | Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) |
  108. +-----------+-------------------------------------------------+
  109. | *Setter* | set_transform(value) |
  110. +-----------+-------------------------------------------------+
  111. | *Getter* | get_transform() |
  112. +-----------+-------------------------------------------------+
  113. The queried shape's transform matrix.
  114. Method Descriptions
  115. -------------------
  116. .. _class_PhysicsShapeQueryParameters_method_set_shape:
  117. - void **set_shape** **(** :ref:`Resource<class_Resource>` shape **)**
  118. Sets the :ref:`Shape<class_Shape>` that will be used for collision/intersection queries.