You can find the angle between vectors (positions) using the dot product.

Then associate a range of angles with a door.

1 Like