Rectangle.setPositionFromVector()

Set the position of the rectangle with the Vector2 given as parameter

Parameters

NameTypeDescription
1positionVector2
2ynumber

Return value

Rectangle

the rectangle with its new position

Usage