.. 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 ---------------- +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collision_layer` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_exclude` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_margin` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_motion` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_shape_rid` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform2D` | :ref:`get_transform` **(** **)** const | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_layer` **(** :ref:`int` collision_layer **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_exclude` **(** :ref:`Array` exclude **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_margin` **(** :ref:`float` margin **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_motion` **(** :ref:`Vector2` motion **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape` **(** :ref:`Resource` shape **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape_rid` **(** :ref:`RID` shape **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_transform` **(** :ref:`Transform2D` transform **)** | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- This class contains the shape and other parameters for intersection/collision queries. Member Function Description --------------------------- .. _class_Physics2DShapeQueryParameters_get_collision_layer: - :ref:`int` **get_collision_layer** **(** **)** const Return the physics layer the shape belongs to. .. _class_Physics2DShapeQueryParameters_get_exclude: - :ref:`Array` **get_exclude** **(** **)** const Return the list of objects, or object :ref:`RID`\ s, that will be excluded from collisions. .. _class_Physics2DShapeQueryParameters_get_margin: - :ref:`float` **get_margin** **(** **)** const Return the collision margin for the shape. .. _class_Physics2DShapeQueryParameters_get_motion: - :ref:`Vector2` **get_motion** **(** **)** const Return the current movement speed of the shape. .. _class_Physics2DShapeQueryParameters_get_shape_rid: - :ref:`RID` **get_shape_rid** **(** **)** const Return the :ref:`RID` of the shape queried. .. _class_Physics2DShapeQueryParameters_get_transform: - :ref:`Transform2D` **get_transform** **(** **)** const Return the transform matrix of the shape queried. .. _class_Physics2DShapeQueryParameters_set_collision_layer: - void **set_collision_layer** **(** :ref:`int` collision_layer **)** Set the physics layer the shape belongs to. .. _class_Physics2DShapeQueryParameters_set_exclude: - void **set_exclude** **(** :ref:`Array` exclude **)** Set the list of objects, or object :ref:`RID`\ s, that will be excluded from collisions. .. _class_Physics2DShapeQueryParameters_set_margin: - void **set_margin** **(** :ref:`float` margin **)** Set the collision margin for the shape. A collision margin is an amount (in pixels) that the shape will grow when computing collisions, to account for numerical imprecision. .. _class_Physics2DShapeQueryParameters_set_motion: - void **set_motion** **(** :ref:`Vector2` motion **)** Set the current movement speed of the shape. .. _class_Physics2DShapeQueryParameters_set_shape: - void **set_shape** **(** :ref:`Resource` shape **)** Set the :ref:`Shape2D` that will be used for collision/intersection queries. .. _class_Physics2DShapeQueryParameters_set_shape_rid: - void **set_shape_rid** **(** :ref:`RID` shape **)** Set the :ref:`RID` of the shape to be used in queries. .. _class_Physics2DShapeQueryParameters_set_transform: - void **set_transform** **(** :ref:`Transform2D` transform **)** Set the transformation matrix of the shape. This is necessary to set its position/rotation/scale.