alcoranpaul / DunGen

Procedural Dungeon Generator made for Flax Engine
MIT License
0 stars 0 forks source link

When getting Outer Nodes not getting all correct nodes #26

Closed alcoranpaul closed 1 month ago

alcoranpaul commented 1 month ago

When Getting outer nodes and not the entire room is spawned it (say half the room). the room's OuterNodesPosition does not contain all the nodes

Image

alcoranpaul commented 1 month ago

probably should change the Width and Length accordingly

alcoranpaul commented 1 month ago

Has to do with GetNeighborhood(GridPosition basePosition, int Width, int Length)

   GridPosition pos = new GridPosition(basePosition.X - widthOffset + i, basePosition.Z - lengthOffset + j);

the same with:

alcoranpaul commented 1 month ago

But it probably not the case since GetNeighborhood functions should only return List of GridPositions and should not validate them