Click or drag to resize

PhysicsDirectSpaceStateCollideShape Method

Checks the intersections of a shape, given through a PhysicsShapeQueryParameters object, against the space. The resulting array contains a list of points where the shape intersects another. Like with IntersectShape(PhysicsShapeQueryParameters, 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(
	PhysicsShapeQueryParameters shape,
	int maxResults = 32
)

Parameters

shape
Type: GodotPhysicsShapeQueryParameters

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

maxResults (Optional)
Type: SystemInt32

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

Return Value

Type: Array

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

See Also