diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:19:37 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:19:37 +0000 |
commit | 27ba0701dcb7ce441cb91a10a570e4f4b05db5c4 (patch) | |
tree | 604684712e372783974eff77b5497a5c0a28ecfe /game/network/rail.h | |
parent | Keep radius and arc as part of rail curve (diff) | |
download | ilt-27ba0701dcb7ce441cb91a10a570e4f4b05db5c4.tar.bz2 ilt-27ba0701dcb7ce441cb91a10a570e4f4b05db5c4.tar.xz ilt-27ba0701dcb7ce441cb91a10a570e4f4b05db5c4.zip |
Support getting the position at a point along a link
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 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); |