How do I apply rigid body physics so my character can stand only if it is balanced

This is confusing for me. Should just use an ability to modify the mesh based on some calculation or something from Github?