Lighting-System-2D icon indicating copy to clipboard operation
Lighting-System-2D copied to clipboard

polygon_from_instance - Doesn't get bounding box for angles different than 0 degrees

Open AIO1 opened this issue 3 years ago • 0 comments

As it can be seen on the screenshoot, in a case the instance we want to create polygons from has an angle different than 0 degrees, the polygons will be created taking into account the sprite width, instead the bounding box, which is a different behavious from the case of 0 degrees.

This should be fixed and also there could be an additional boolean argument in the function to alternate the polygon generation: either using the bounding box or the sprite dimensions (by deault true which means generate from bounding box).

image

AIO1 avatar Dec 23 '21 11:12 AIO1