work in progress to find the correct rotation of the projected object