summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-22 20:12:59 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-22 20:12:59 +0000
commit838e5f77478e5648769439e191e3ff0a8e6405ab (patch)
treee42961851585d6cc519247671bb3bad8ca9453a3 /application
parentArc stream operator is inline, say so (diff)
downloadilt-838e5f77478e5648769439e191e3ff0a8e6405ab.tar.bz2
ilt-838e5f77478e5648769439e191e3ff0a8e6405ab.tar.xz
ilt-838e5f77478e5648769439e191e3ff0a8e6405ab.zip
Add meandering support
Add rail links between existing nodes and arbitrary points
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 69b62ba..49b7cda 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -67,6 +67,13 @@ public:
{
const glm::vec3 j {-1100, 15, -1100}, k {-1100, 15, -1000}, l {-1150, 10, -1050}, m {-1050, 10, -1050};
rl->addLink<RailLinkStraight>(j, k);
+ auto e = rl->addLinksBetween(k, {-1000, 20, -800})->ends[1].first->pos;
+ e = rl->addLinksBetween(e, {-900, 30, -600})->ends[0].first->pos;
+ e = rl->addLinksBetween(e, {-600, 32, -500})->ends[1].first->pos;
+ e = rl->addLinksBetween(e, {-500, 30, -800})->ends[1].first->pos;
+ e = rl->addLinksBetween(e, {-600, 25, -900})->ends[1].first->pos;
+ e = rl->addLinksBetween(e, {-1000, 10, -1129})->ends[0].first->pos;
+ e = rl->addLinksBetween(e, j)->ends[0].first->pos;
rl->addLink<RailLinkCurve>(l, k, glm::vec2 {l.x, k.z});
auto l3 = rl->addLink<RailLinkStraight>(l, m);
rl->addLink<RailLinkCurve>(m, j, glm::vec2 {m.x, j.z});