Click or drag to resize

Shape2DCollide Method

Returns true if this shape is colliding with another.

This method needs the transformation matrix for this shape (local_xform), the shape to check collisions with (with_shape), and the transformation matrix of that shape (shape_xform).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool Collide(
	Transform2D localXform,
	Shape2D withShape,
	Transform2D shapeXform
)

Parameters

localXform
Type: GodotTransform2D

[Missing <param name="localXform"/> documentation for "M:Godot.Shape2D.Collide(Godot.Transform2D,Godot.Shape2D,Godot.Transform2D)"]

withShape
Type: GodotShape2D

[Missing <param name="withShape"/> documentation for "M:Godot.Shape2D.Collide(Godot.Transform2D,Godot.Shape2D,Godot.Transform2D)"]

shapeXform
Type: GodotTransform2D

[Missing <param name="shapeXform"/> documentation for "M:Godot.Shape2D.Collide(Godot.Transform2D,Godot.Shape2D,Godot.Transform2D)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Shape2D.Collide(Godot.Transform2D,Godot.Shape2D,Godot.Transform2D)"]

See Also