Retrieving neighbour rooms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Devs!
I've got some issue with this subject. I tried using the GetRoomNeighbourAt() Method shown at this site https://thebuildingcoder.typepad.com/blog/2013/09/room-neighbours.html
This method works pretty well but in some cases (different projects/files) I'm not getting resutls. For example, in my last project the method only retrieve neighbour rooms located at the second level and no results in other level. I have figured out that the issue is with the GetRoomAtPoint() method and it seems like right exactly when the algorithm retrieve the point next to the segment, it is not located withing the neighbour room boundaries. For the first level, the z axis value is 0 and i changed it to 1 and then it worked perfectly fine but it is not the same for all projects/files.
thanks for your attention,
Juan Camilo Avila.