I would like to make this breakable glass, where Breaking Point (random breaking point in red) creates 8 line segments to then cut (to make the shards):

  • 4 lines segments from Breaking Point to every corner of the glass
  • 4 line segments from Breaking Point to the shortest path to every 4 sides of the glass This can be simulated in the link given above to better understand what I am trying to make (you can move/drag the RED dot).

After the script finds/calculates those 8 points, the line segment would then cut the glass entirely (so from the thickness of the glass) and then those pieces would fall to the ground. I would also like for it to regenerate/fix the glass after a couple of seconds.

If possible could this work with a union or a different shape, for example, a hexagon?

I know this isn't a request, but I would like to have detailed information about how to make this, as well as reference documentation for how to do this.

2 comments

0

i know this probably isnt what you mean, but couldnt you just have 8 seperate pieces

0

No because I want it to calculate to make the shards in any random point. (For example you shoot glass and it breaks from the point of contact)