Nice work, but yes, you do need types to tidy this all up.
It will be worth the effort as you add other doors.
Nice to see you have timed closing, as well.
One thing I've noticed (which I approve of) in games, is that if you make a run for a closing door, it never actually 'traps' you - that would be tedious. Instead I think they kill the collisions on the door while it's moving. Not quite ultra-realism, but better than getting trapped, when the only way out is to exit.
It will be worth the effort as you add other doors.
Nice to see you have timed closing, as well.
One thing I've noticed (which I approve of) in games, is that if you make a run for a closing door, it never actually 'traps' you - that would be tedious. Instead I think they kill the collisions on the door while it's moving. Not quite ultra-realism, but better than getting trapped, when the only way out is to exit.