Come too close and gravity itself shreds you: inside the Roche limit, the tidal difference across a moon exceeds its own self-gravity, and it disintegrates into a ring. For a rigid body d = R(2ρM/ρm)⅓ — about 1.26 planetary radii for equal densities (a fluid moon, which the tide can stretch, goes out to ~2.44R). Saturn’s rings sit inside its Roche limit: a moon that never could form, or one that did and died.
The demo computes the rigid Roche limit for equal densities via a Newton cube root (i13 has no cbrt): live demo
“The Roche limit is one number.” — rigid vs fluid bodies differ (fluid ~2.44R, rigid ~1.26R for the classic form); density ratio matters. cited
Get close enough and gravity un-builds you. physics
On i-13 (Newton cbrt), the rigid Roche limit for equal densities is 1.26 R: