class_physics2dshapequeryparameters.rst 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. Member Functions
  13. ----------------
  14. +-------+-------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`set_shape<class_Physics2DShapeQueryParameters_set_shape>` **(** :ref:`Resource<class_resource>` shape **)** |
  16. +-------+-------------------------------------------------------------------------------------------------------------------+
  17. Member Variables
  18. ----------------
  19. .. _class_Physics2DShapeQueryParameters_collision_layer:
  20. - :ref:`int<class_int>` **collision_layer** - The physics layer the query should be made on.
  21. .. _class_Physics2DShapeQueryParameters_exclude:
  22. - :ref:`Array<class_array>` **exclude** - The list of objects or object :ref:`RID<class_rid>`\ s, that will be excluded from collisions.
  23. .. _class_Physics2DShapeQueryParameters_margin:
  24. - :ref:`float<class_float>` **margin** - The collision margin for the shape.
  25. .. _class_Physics2DShapeQueryParameters_motion:
  26. - :ref:`Vector2<class_vector2>` **motion** - The motion of the shape being queried for.
  27. .. _class_Physics2DShapeQueryParameters_shape_rid:
  28. - :ref:`RID<class_rid>` **shape_rid** - The :ref:`RID<class_rid>` of the queried shape. See :ref:`set_shape<class_Physics2DShapeQueryParameters_set_shape>` also.
  29. .. _class_Physics2DShapeQueryParameters_transform:
  30. - :ref:`Transform2D<class_transform2d>` **transform** - the transform matrix of the queried shape.
  31. Description
  32. -----------
  33. This class contains the shape and other parameters for intersection/collision queries.
  34. Member Function Description
  35. ---------------------------
  36. .. _class_Physics2DShapeQueryParameters_set_shape:
  37. - void **set_shape** **(** :ref:`Resource<class_resource>` shape **)**
  38. Set the :ref:`Shape2D<class_shape2d>` that will be used for collision/intersection queries.