Anim xforms won't help you. Instead, you'll have to know before hand what animation would work best. Algorithm I use is to compare the character's rigidbody capsule orientation or its forward direction, via GetDirection(), and compare that to the ragdoll's head node direction from the hip node. If the two are in the same direction, I use getupfromFront animation, otherwise use getupfromBack anim. Of course you can add more getup animations, such as getupfromRight and getupfromLeft, and make it more elegant.