Parameters to be sent to a 2D shape physics query.
    public class Physics2DShapeQueryParameters : Reference

This class contains the shape and other parameters for intersection/collision queries.

Inheritance Chain

Constructors

    public Physics2DShapeQueryParameters()

Properties

    public bool CollideWithAreas { get; set; }

    public bool CollideWithBodies { get; set; }

    public int CollisionLayer { get; set; }

The physics layer the query should be made on.

    public Collections.Array Exclude { get; set; }

The list of objects or object RIDs, that will be excluded from collisions.

    public float Margin { get; set; }

The collision margin for the shape.

    public Vector2 Motion { get; set; }

The motion of the shape being queried for.

    public RID ShapeRid { get; set; }

The RID of the queried shape. See also SetShape(Godot.Resource).

    public Transform2D Transform { get; set; }

the transform matrix of the queried shape.

Methods

    [Obsolete("GetCollisionLayer is deprecated. Use the CollisionLayer property instead.")]
    public int GetCollisionLayer()

Getter for CollisionLayer

    [Obsolete("GetExclude is deprecated. Use the Exclude property instead.")]
    public Godot.Collections.Array GetExclude()

Getter for Exclude

    [Obsolete("GetMargin is deprecated. Use the Margin property instead.")]
    public float GetMargin()

Getter for Margin

    [Obsolete("GetMotion is deprecated. Use the Motion property instead.")]
    public Vector2 GetMotion()

Getter for Motion

    [Obsolete("GetShapeRid is deprecated. Use the ShapeRid property instead.")]
    public RID GetShapeRid()

Getter for ShapeRid

    [Obsolete("GetTransform is deprecated. Use the Transform property instead.")]
    public Transform2D GetTransform()

Getter for Transform

    [Obsolete("IsCollideWithAreasEnabled is deprecated. Use the CollideWithAreas property instead.")]
    public bool IsCollideWithAreasEnabled()

Getter for CollideWithAreas

    [Obsolete("IsCollideWithBodiesEnabled is deprecated. Use the CollideWithBodies property instead.")]
    public bool IsCollideWithBodiesEnabled()

Getter for CollideWithBodies

    [Obsolete("SetCollideWithAreas is deprecated. Use the CollideWithAreas property instead.")]
    public void SetCollideWithAreas(bool enable)

Setter for CollideWithAreas

    [Obsolete("SetCollideWithBodies is deprecated. Use the CollideWithBodies property instead.")]
    public void SetCollideWithBodies(bool enable)

Setter for CollideWithBodies

    [Obsolete("SetCollisionLayer is deprecated. Use the CollisionLayer property instead.")]
    public void SetCollisionLayer(int collisionLayer)

Setter for CollisionLayer

    [Obsolete("SetExclude is deprecated. Use the Exclude property instead.")]
    public void SetExclude(Godot.Collections.Array exclude)

Setter for Exclude

    [Obsolete("SetMargin is deprecated. Use the Margin property instead.")]
    public void SetMargin(float margin)

Setter for Margin

    [Obsolete("SetMotion is deprecated. Use the Motion property instead.")]
    public void SetMotion(Vector2 motion)

Setter for Motion

    public void SetShape(Resource shape)

Sets the Shape2D that will be used for collision/intersection queries.

    [Obsolete("SetShapeRid is deprecated. Use the ShapeRid property instead.")]
    public void SetShapeRid(RID shape)

Setter for ShapeRid

    [Obsolete("SetTransform is deprecated. Use the Transform property instead.")]
    public void SetTransform(Transform2D transform)

Setter for Transform

Tags: