From 27ba0701dcb7ce441cb91a10a570e4f4b05db5c4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2021 13:19:37 +0000 Subject: Support getting the position at a point along a link --- game/network/rail.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'game/network/rail.h') diff --git a/game/network/rail.h b/game/network/rail.h index f50ef3c..58c26c3 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -36,6 +36,7 @@ protected: class RailLinkStraight : public RailLink { public: RailLinkStraight(const NodePtr &, const NodePtr &); + Transform positionAt(float dist, unsigned char start) const override; private: RailLinkStraight(NodePtr, NodePtr, const glm::vec3 & diff); @@ -44,6 +45,7 @@ private: class RailLinkCurve : public RailLink { public: RailLinkCurve(const NodePtr &, const NodePtr &, glm::vec2); + Transform positionAt(float dist, unsigned char start) const override; private: RailLinkCurve(const NodePtr &, const NodePtr &, glm::vec3, const Arc); -- cgit v1.2.3