Turns a pivot based on the property values and input door state. This can be used for more than just doors, but is most common in doors.