Click or drag to resize

Physics2DDirectSpaceStateCollideShape Method

Checks the intersections of a shape, given through a Physics2DShapeQueryParameters object, against the space. The resulting array contains a list of points where the shape intersects another. Like with IntersectShape(Physics2DShapeQueryParameters, Int32), the number of returned results can be limited to save processing time.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Array CollideShape(
	Physics2DShapeQueryParameters shape,
	int maxResults = 32
)

Parameters

shape
Type: GodotPhysics2DShapeQueryParameters

[Missing <param name="shape"/> documentation for "M:Godot.Physics2DDirectSpaceState.CollideShape(Godot.Physics2DShapeQueryParameters,System.Int32)"]

maxResults (Optional)
Type: SystemInt32

[Missing <param name="maxResults"/> documentation for "M:Godot.Physics2DDirectSpaceState.CollideShape(Godot.Physics2DShapeQueryParameters,System.Int32)"]

Return Value

Type: Array

[Missing <returns> documentation for "M:Godot.Physics2DDirectSpaceState.CollideShape(Godot.Physics2DShapeQueryParameters,System.Int32)"]

See Also