diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:17:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:17:55 +0000 |
commit | b4b52d38b63a76b3067b6b6de2b7f2dc2c8ca0f0 (patch) | |
tree | 2948ae9c038ed635e17765a85bdead48f23bb274 /game/network/rail.h | |
parent | Fix order of ends in test rail curves (diff) | |
download | ilt-b4b52d38b63a76b3067b6b6de2b7f2dc2c8ca0f0.tar.bz2 ilt-b4b52d38b63a76b3067b6b6de2b7f2dc2c8ca0f0.tar.xz ilt-b4b52d38b63a76b3067b6b6de2b7f2dc2c8ca0f0.zip |
Keep radius and arc as part of rail curve
Fixes order of mesh points oo fix culling
Diffstat (limited to 'game/network/rail.h')
-rw-r--r-- | game/network/rail.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/game/network/rail.h b/game/network/rail.h index a501f32..f50ef3c 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -48,6 +48,8 @@ public: private: RailLinkCurve(const NodePtr &, const NodePtr &, glm::vec3, const Arc); glm::vec3 centreBase; + float radius; + Arc arc; }; template<typename T> concept RailLinkConcept = std::is_base_of_v<RailLink, T>; |