Skip to content

setPosition()

Move the object so the top-left corner of its bounding box sits at the given point.

rotary.setPosition(x, y)

Parameters

rotary.setPosition(x, y)
Parameter Type Default Description
x int or float required The new horizontal position, in pixels.
y int or float required The new vertical position, in pixels.