Skip to content

Commit 28f0b66

Browse files
authored
readme updated with new cutting system.
1 parent b8f7075 commit 28f0b66

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,31 @@
22

33

44

5+
## UPDATES
6+
- UPDATE v1.1.0 adds cutting of polygons.
7+
8+
9+
510
## Info
611

712
Works with GodotEngine 3.2+
813

9-
Two simple scripts for fracturing polygons. PolygonFracture.gd is the actual script that fractures polygons. PolygonLib.gd adds nice helper functions for polygons like calculateArea, triangulate, getRandomPointsInPolygon, getBoundingRect, etc.
14+
Two simple scripts for fracturing and cutting polygons. PolygonFracture.gd is the actual script that fractures/cuts polygons. PolygonLib.gd adds nice helper functions for polygons like calculateArea, triangulate, getRandomPointsInPolygon, getBoundingRect, etc.
1015

1116
The final scripts are located in the polygon2d-fracture folder.
1217
The demo project is located in the demo folder.
1318

1419
PS: To test the cutting's actual perfomance just increase the min area (around 5000) because then less rigid bodies are spawned. You wont see many fracture shards either, though. (spawning and despawning that many rigid bodies at once cause the biggest performance hit - pooling would alleviate that for some part)
1520

21+
22+
23+
## Cut Method
24+
25+
There is just one cut method. It uses 1 polygon as source and 1 polygon as cut shape. The intersected shape (the parts overlapping in both polygons) can be fractured if desired. I also added helper funcs to PolygonLib.gd to create simple polygon shapes (currently: rectangle, circle, beam).
26+
27+
![](gifs/polygon2d-cutfracture-showcase-02.gif)
28+
29+
1630
## Fracturing Methods
1731

1832
There are two different systems for fracturing polygons.

0 commit comments

Comments
 (0)