getClosestPoint

expect fun getClosestPoint(target: Vec2): Vec2

Get the closest point on this shape to the given target point.

Return

The closest point on the shape surface

Parameters

target

The target point in world space