The location is according to the center of the polygon
Note that if this polygon belongs to a dynamic object then you
have to add the location of the dynamic object to the result.
(This note is not relevant in editor mode)
The location is according to the center of the polygon
A note regarding the function STATE_object_duplicate() :
Note that this function will fail if the polygon belongs to an object
that was duplicated with the "dont_duplicate_polygons_flag"
In this case we will get the location of the polygon on the original copy of the object
|