is it possible to create mini tile with triangle and rectangle from 1 tile?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bgegg

enter image description here

i want make edge to multiple tiles from 1 plane tile,and i need rip to multiple shape like image 4.
i want make this shape by automaticaly.

is this feature in godot?
do i need manipulate the polygons?

please tell me.

:bust_in_silhouette: Reply From: AndyCampbell

I do not believe that is a function in godot, however you can make that.

This cool video by Bramwell Williams shows a similar effect: https://www.youtube.com/watch?v=daT9soj7kqQ

His script is here
https://github.com/bramreth/godot_tutorial_content/blob/master/Delaunay/Polygon2D.gd

In this case, Bramwell splits a sprite into triangles to make an explosion effect, however you could use that as a starting point to make the effect you need.

thanks for comment.i start with this tutorial about polygon operation.
i want make triangle from rect.and other case,i want make pentagon from rect.

bgegg | 2021-04-12 04:02