Parameters to be sent to a 2D shape physics query.
This class contains the shape and other parameters for intersection/collision queries.
Return the physics layer the shape belongs to.
Return the list of objects, or object [RID]s, that will be excluded from collisions.
Return the collision margin for the shape.
Return the current movement speed of the shape.
Return the [RID] of the shape queried.
Return the transform matrix of the shape queried.
Set the physics layer the shape belongs to.
Set the list of objects, or object [RID]s, that will be excluded from collisions.
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.
Set the current movement speed of the shape.
Set the [Shape2D] that will be used for collision/intersection queries.
Set the [RID] of the shape to be used in queries.
Set the transformation matrix of the shape. This is necessary to set its position/rotation/scale.