How to deal with destructible 2D environment?

Hi!
Imagine you have a rock attached to a ceiling and you want to allow a player to shoot at the rock - and the rock should fall down to floor when hit.

How to do that properly?
e.g. attach rigidbody2D (dynamic) to the rock but set gravity to 0, and on hit set it to 1?
or create sort of joint (which one?) to be broken on hit, and rigidbody2D will have gravity = 1 from start

Any good links to tutorials are very appreciated!
Thanx!

Example - I want a rock in this video to fall down when hit:

Most joints have a breaking force and breaking torque.

thanx, fixed jont works well for me.

1 Like