Skip to content

getPosition()

Return the object's position, the top-left corner of its bounding box.

rotary.getPosition()

Returns

return x, y

Value Type Description
x int or float The horizontal position of the top-left corner, in pixels.
y int or float The vertical position of the top-left corner, in pixels.