summaryrefslogtreecommitdiff
path: root/application/main.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 11:32:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 11:32:15 +0000
commit30e3c9625856c24fa88ec148da6865657414c77d (patch)
tree76050748b6816606254117b02d3a681edeb77666 /application/main.cpp
parentFix up the maths in creating curved rails (diff)
downloadilt-30e3c9625856c24fa88ec148da6865657414c77d.tar.bz2
ilt-30e3c9625856c24fa88ec148da6865657414c77d.tar.xz
ilt-30e3c9625856c24fa88ec148da6865657414c77d.zip
Links have length, ends have entry direction
Diffstat (limited to 'application/main.cpp')
-rw-r--r--application/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 73d4440..38874f4 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -69,16 +69,16 @@ 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, {l.x, k.z});
+ rl->addLink<RailLinkCurve>(k, l, glm::vec2 {l.x, k.z});
rl->addLink<RailLinkStraight>(l, m);
- rl->addLink<RailLinkCurve>(j, m, {m.x, j.z});
+ 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, {-1185, k.z});
+ rl->addLink<RailLinkCurve>(l, k, glm::vec2 {-1185, k.z});
rl->addLink<RailLinkStraight>(l, m);
- rl->addLink<RailLinkCurve>(j, m, {-1185, m.z});
+ rl->addLink<RailLinkCurve>(j, m, glm::vec2 {-1185, m.z});
}
Shader shader;