|
*** could be sometimes useful
Recenter the object polygons.
Q: Why do we need this function ?
A: Many operations like scaling the object are done around the object center
If we change the points of the object's polygons or move the polygons,
the object wont be anymore built arround 0,0,0 and so some operation like scaling might give
not the result that we expect.
by using this function the object is being rebuilt so that the polygons
point are defined around the object 0,0,0
The object will look the same way after calling this function as before !
but if calling STATE_object_get_location() you will get a different location
this is because the center is changed as well as the location of the polygons
but it is done in a way that the overall result is as if nothing has moved.
|