diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-28 01:08:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-28 02:10:47 +0100 |
commit | 3bb238d41ca4f3e4a40f4ee3700b27ca7bf03b56 (patch) | |
tree | 532083d6076a8b1e72824fc9789769c5f60fc7b0 /game/network/network.h | |
parent | Implement extending a network into open space (diff) | |
download | ilt-3bb238d41ca4f3e4a40f4ee3700b27ca7bf03b56.tar.bz2 ilt-3bb238d41ca4f3e4a40f4ee3700b27ca7bf03b56.tar.xz ilt-3bb238d41ca4f3e4a40f4ee3700b27ca7bf03b56.zip |
Implement extending a network to join link ends
Diffstat (limited to 'game/network/network.h')
-rw-r--r-- | game/network/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h index f37f335..4a2f56a 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -48,6 +48,8 @@ public: protected: static void joinLinks(const Link::Ptr & l, const Link::Ptr & ol); static GenCurveDef genCurveDef(const glm::vec3 & start, const glm::vec3 & end, float startDir); + static std::pair<GenCurveDef, GenCurveDef> genCurveDef( + const glm::vec3 & start, const glm::vec3 & end, float startDir, float endDir); using Nodes = std::set<Node::Ptr, PtrMemberSorter<Node::Ptr, &Node::pos>>; Nodes nodes; |