From 59cc4b8a7cb25a7ac003eb05794ee94e080ad302 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 23 Apr 2023 21:53:20 +0100 Subject: Fudge RV bogey position the same as we do the body in test-render --- test/test-render.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test-render.cpp b/test/test-render.cpp index 0fbeb2b..d5e2d87 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -36,8 +36,12 @@ public: { train1 = std::make_shared(brush47rvc); train1->location.setPosition({52, 50, 2}); + train1->bogies.front().setPosition(train1->bogies.front().position() + train1->location.position()); + train1->bogies.back().setPosition(train1->bogies.back().position() + train1->location.position()); train2 = std::make_shared(brush47rvc); train2->location.setPosition({52, 30, 2}); + train2->bogies.front().setPosition(train2->bogies.front().position() + train2->location.position()); + train2->bogies.back().setPosition(train2->bogies.back().position() + train2->location.position()); } void content(const SceneShader & shader) const override -- cgit v1.2.3