OnJointBreak2D

I am making a physics game with joint break forces, but I need to be able to revert objects back to a previous state. Problem is that when a joint breaks it disappears automatically.

Is there a way to just disable joints instead of destroying them when they break?

EDIT: Came up with a sort of hack.

  1. When joint breaks, make a clone of the object with the joint and disable the clone (invisible)
  2. Save the clone to a list
  3. When time to recover, for each clone add component back to original and copy properties over
  4. Destroy clones

When I implemented the breakable 2D joints, I copied the existing functionality of 3D joints which is to delete the component however I think it’s a good idea to have the option to either destroy or disable the joint. I will add this as a feature request and see about getting it done sooner rather than later as it’s a super easy thing to add.

Thank you so much!