The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

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.

in Engine by (203 points)

1 Answer

0 votes

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.

by (658 points)

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.