Transforming rightside up.

Ok so right now I’m making to transformer that will have all the accurate airplane technicalities, like if I’m upside down, i want the transformer to rotate in the correct position (aka the feet hit the ground not the head) this would be nice because if it doesn’t land perfectly strait, the movement will mess up and people will hate the game. so how do program the mesh to rotate without using keyframes.

thanks.