toLocal

fun toLocal(point: Vec2f): Vec2f
fun toLocal(x: Float, y: Float): Vec2f

Transforms the provided global position into a position in local coordinate space. The output will be local relative to the Node2D it is called on. e.g. It is appropriate for determining the positions of child nodes, but it is not appropriate for determining its own position relative to its parent.