From e40b6bfe346bb93a2d3b38745b8fddba40e759c6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 5 Feb 2021 18:53:45 +0000 Subject: Initial commit adding curved rail pieces --- game/network/rail.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'game/network/rail.h') diff --git a/game/network/rail.h b/game/network/rail.h index ef119bc..7e1f5ac 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -33,12 +33,21 @@ public: RailLinkStraight(End, End); }; +class RailLinkCurve : public RailLink { +public: + RailLinkCurve(End, End, glm::vec2); + +private: + glm::vec2 centre; +}; + template concept RailLinkConcept = std::is_base_of_v; class RailLinks : public Renderable, public WorldObject { public: RailLinks(); template std::shared_ptr addLink(glm::vec3, glm::vec3); + template std::shared_ptr addLink(glm::vec3, glm::vec3, glm::vec2); private: using Nodes = std::set>; -- cgit v1.2.3