diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-10 00:24:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-10 00:27:31 +0000 |
commit | d00fcb72da106a55d1256d853b4742257052cdb3 (patch) | |
tree | 90e5228d7bd8c61c53c3b55a176c028f1b57a179 /game/network/rail.h | |
parent | Merge nexts into ends (diff) | |
download | ilt-d00fcb72da106a55d1256d853b4742257052cdb3.tar.bz2 ilt-d00fcb72da106a55d1256d853b4742257052cdb3.tar.xz ilt-d00fcb72da106a55d1256d853b4742257052cdb3.zip |
Add findNodeAt to locate a node instance by position
Diffstat (limited to 'game/network/rail.h')
-rw-r--r-- | game/network/rail.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/network/rail.h b/game/network/rail.h index d25964d..4460fcd 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -72,6 +72,7 @@ public: } std::shared_ptr<RailLink> addLinksBetween(glm::vec3 start, glm::vec3 end); + [[nodiscard]] NodePtr findNodeAt(glm::vec3) const; private: using Nodes = std::set<NodePtr, PtrSorter<NodePtr>>; |