diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:16:14 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:16:14 +0000 |
commit | 1a677561e859f6936f48dae99e5e7d96db123f85 (patch) | |
tree | 43fb132a546c1ef2bbadac43287ef82fcb4b9d10 /application | |
parent | Join links in rail graph (diff) | |
download | ilt-1a677561e859f6936f48dae99e5e7d96db123f85.tar.bz2 ilt-1a677561e859f6936f48dae99e5e7d96db123f85.tar.xz ilt-1a677561e859f6936f48dae99e5e7d96db123f85.zip |
Fix order of ends in test rail curves
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/application/main.cpp b/application/main.cpp index e70eae3..35d834d 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -69,16 +69,9 @@ public: { const glm::vec3 j {-1100, 5, -1100}, k {-1100, 5, -1000}, l {-1150, 10, -1050}, m {-1050, 10, -1050}; rl->addLink<RailLinkStraight>(j, k); - rl->addLink<RailLinkCurve>(k, l, glm::vec2 {l.x, k.z}); + rl->addLink<RailLinkCurve>(l, k, glm::vec2 {l.x, k.z}); rl->addLink<RailLinkStraight>(l, m); - rl->addLink<RailLinkCurve>(j, m, glm::vec2 {m.x, j.z}); - } - { - const glm::vec3 j {-1190, 5, -1190}, k {-1190, 6, -1180}, l {-1180, 4, -1180}, m {-1180, 4, -1190}; - rl->addLink<RailLinkStraight>(j, k); - rl->addLink<RailLinkCurve>(l, k, glm::vec2 {-1185, k.z}); - rl->addLink<RailLinkStraight>(l, m); - rl->addLink<RailLinkCurve>(j, m, glm::vec2 {-1185, m.z}); + rl->addLink<RailLinkCurve>(m, j, glm::vec2 {m.x, j.z}); } Shader shader; |