.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the Physics2DShapeQueryParameters.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_Physics2DShapeQueryParameters: Physics2DShapeQueryParameters ============================= **Inherits:** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Parameters to be sent to a 2D shape physics query. Member Functions ---------------- +-------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape` **(** :ref:`Resource` shape **)** | +-------+-------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- .. _class_Physics2DShapeQueryParameters_collision_layer: - :ref:`int` **collision_layer** - The physics layer the query should be made on. .. _class_Physics2DShapeQueryParameters_exclude: - :ref:`Array` **exclude** - The list of objects or object :ref:`RID`\ s, that will be excluded from collisions. .. _class_Physics2DShapeQueryParameters_margin: - :ref:`float` **margin** - The collision margin for the shape. .. _class_Physics2DShapeQueryParameters_motion: - :ref:`Vector2` **motion** - The motion of the shape being queried for. .. _class_Physics2DShapeQueryParameters_shape_rid: - :ref:`RID` **shape_rid** - The :ref:`RID` of the queried shape. See :ref:`set_shape` also. .. _class_Physics2DShapeQueryParameters_transform: - :ref:`Transform2D` **transform** - the transform matrix of the queried shape. Description ----------- This class contains the shape and other parameters for intersection/collision queries. Member Function Description --------------------------- .. _class_Physics2DShapeQueryParameters_set_shape: - void **set_shape** **(** :ref:`Resource` shape **)** Set the :ref:`Shape2D` that will be used for collision/intersection queries.