Normally, when you get/set the position of an object, you actually get/set the position of the object's center of mass. In most cases this is enough, but when the object's center of mass isn't the same as its geometrical position, and you want to locate it (or locate something in it) geometrically, just "getting its position" won't cut it.

The trick is to take the vector returned by Get Position and offset it by half the total size of the object ("the offset"). With "total size", I refer to the minimum and maximum vectors of the object, added together.

Almost similarly, to set the geometrical position of the object, set the actual position of the object to the desired position subtracted by the offset.