Ragdoll falling through floor and detaches from Capsule

If you don’t want to change the Collision Preset of your character mesh permanently for ragdoll to work, then just call Set Collision Enabled function when you’re activating ragdoll, with Query and Physics selected:
image