#7, by afrlmeMonday, 31. August 2015, 21:44 9 years ago
The position of the rectangle / square is based on the top left pixel of said rect & then the width & height. Like so: x, y, width, height. You have to take into account that the position is based on the top left pixel so to center the box to a specific coordinate you would need to remove half the width value from the x position & same again with the height.
Quick note: the position is based on the viewport (camera) & not the scene width / height.