From 2812584e271a62d8edd4d8ec683ea4c644730df2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 15 Feb 2021 01:36:51 +0000 Subject: Basic support for rail wagons --- application/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'application/main.cpp') 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(l, k, glm::vec2 {l.x, k.z}); auto l3 = rl->addLink(l, m); rl->addLink(m, j, glm::vec2 {m.x, j.z}); - world.create(l3); + auto loco = world.create(l3); + for (int n = 0; n < 6; n++) { + loco->wagons.push_back(world.create(l3)); + } } Shader shader; -- cgit v1.2.3