getNodePosition

open fun getNodePosition(index: Int): Vector2

Returns the position of the node at the given index.

Note that the same Vector2 instance is returned each time this method is called.

Parameters

index

the index of the node you want to know the position