Phys keepupright

It tries to rotate an object so that it sticks to this entity's Pitch Yaw Roll.

One is used in Half-Life 2 on to make the buggy hit the ground upside down after being dropped from the crane.