How do you detect a Geometry Collection is separated in 2 parts?

Say you have a tube that is destructible, and 2 ends of it are anchored.
While the player is destroying the center part, how do you detect that it is separated into 2 parts (that are disconnected)?

You could do this in many ways and you should do it differently based on the game requirements.

  1. You can divide the mesh into three parts: beginning, middle and end. Simply only make the middle part destructible, problem solved.
  2. You can mask paint areas that shouldn’t be destructible.
  3. If you are using chaos, simply make the edge pieces of the pipe static.

Thank you for these ideas!

I’ll try to make my scenario clearer: imagine one metal tube that is conducting electricity, its center part is destructible, and the player with limited ammo could only break it one small piece at a time.

So what I need to monitor is the event when the destruction is finally cutting through the tube. (it is not necessary to destroy the whole center part) The electricity shall be disconnected at that moment.

1 Like

rather than apply destruction on hit i create a health value and then manually destroy it, that way you know and can control exactly when it happens and run events off it