Click or drag to resize

RayCast2DGetCollider Method

Returns the first object that the ray intersects, or null if no object is intersecting the ray (i.e. IsColliding returns false).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Object GetCollider()

Return Value

Type: Object

[Missing <returns> documentation for "M:Godot.RayCast2D.GetCollider"]

See Also