OndrejNepozitek / Edgar-Unity

Unity Procedural Level Generator
https://ondrejnepozitek.github.io/Edgar-Unity/docs/introduction
MIT License
817 stars 70 forks source link

Not possible to create doors with length one #1

Closed OndrejNepozitek closed 5 years ago

OndrejNepozitek commented 5 years ago

This is due to the fact that the layout generator does not support having doors that consist of only a single vertex (it needs at least one edge).

One possible approach to this problem is to simply remove the length check from the door handler in the generator. Such doors would have to be accompanied with an explicitly set direction, because when the point is a corner point of the polygon, we do not know from which direction should the rooms be connected. This functionality is already supported by OrthogonalLine.