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.
- When joint breaks, make a clone of the object with the joint and disable the clone (invisible)
- Save the clone to a list
- When time to recover, for each clone add component back to original and copy properties over
- Destroy clones