So, inside the Character Movement Component, you can prevent the player from walking off ledges in certain circumstances.
The problem is, even though “Perch radius threshold” adjusts how far past the edge the capsule can move before it counts as “off the edge”, there doesn’t seem to be a way to prevent the capsule itself from getting too CLOSE.
i.e. If the character is not allowed to walk off a ledge, I’d like to prevent the horizontal bounds of his capsule from making it past the edge. I don’t want him to be able to walk out off the edge to the very bottom of his capsule; I don’t want ANY of his capsule from extending off the edge while he’s grounded.
I don’t want to use blocking volumes at the ledge for this (though they would work perfectly) since the player is only restricted in this way under certain circumstances (specifically, while being driven by root motion).