Click or drag to resize

Shape2DCollideAndGetContacts Method

Returns a list of the points where this shape touches another. If there are no collisions the list is empty.

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 Array CollideAndGetContacts(
	Transform2D localXform,
	Shape2D withShape,
	Transform2D shapeXform
)

Parameters

localXform
Type: GodotTransform2D

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

withShape
Type: GodotShape2D

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

shapeXform
Type: GodotTransform2D

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

Return Value

Type: Array

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

See Also