Function RayCast2D.getCollider

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

GodotObject getCollider() nothrow @nogc const;