Furniture library bug fixes

This commit is contained in:
Andrej730
2023-01-08 13:19:37 +05:00
parent 0294c4e02c
commit c29048ecfb
3 changed files with 1424 additions and 1424 deletions
@@ -268,7 +268,7 @@ class ShapeBuilder:
# > angle - in degrees
# < rotated Vector
angle_rad = angle / 180 * pi
angle_rad = angle / 180 * pi * (1 if counter_clockwise else -1)
relative_point = point_2d - pivot_point
relative_point = Matrix.Rotation(angle_rad, 2, "Z") @ relative_point
point_2d = relative_point + pivot_point