Having problem with a complex rotation mechanism!

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)