@monica posted this link in JS but there are some nice Python physics too so sharing here.
https://slicker.me/blender/wreck.htm