That’s what the angular motor is for:
The rest of the setup:
I hereby declare the 18th of March “The Door Hattrick” day. Everybody is interested in swinging doors for some unfathomable reason…