diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-15 01:36:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-15 01:36:51 +0000 |
commit | 2812584e271a62d8edd4d8ec683ea4c644730df2 (patch) | |
tree | ebf24b19e6e5cd7b0bc3f7f1e2aad6f2479f2692 /application | |
parent | Correctly follow rails according to wheelbase (diff) | |
download | ilt-2812584e271a62d8edd4d8ec683ea4c644730df2.tar.bz2 ilt-2812584e271a62d8edd4d8ec683ea4c644730df2.tar.xz ilt-2812584e271a62d8edd4d8ec683ea4c644730df2.zip |
Basic support for rail wagons
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index ee6bade..04ff9c0 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -73,7 +73,10 @@ public: 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}); - world.create<Brush47>(l3); + auto loco = world.create<Brush47>(l3); + for (int n = 0; n < 6; n++) { + loco->wagons.push_back(world.create<Brush47Wagon>(l3)); + } } Shader shader; |