re-ordered code, to do any flipping before the updateWorldTransform is called.