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/link.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/link.h')
-rw-r--r-- | game/network/link.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/network/link.h b/game/network/link.h index c9fbedb..3fabf05 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -2,6 +2,7 @@ #define LINK_H #include <array> +#include <gfx/gl/transform.h> #include <glm/glm.hpp> #include <memory> #include <special_members.hpp> @@ -36,6 +37,8 @@ public: NO_COPY(Link); NO_MOVE(Link); + virtual Transform positionAt(float dist, unsigned char start) const = 0; + std::array<End, 2> ends; float length; using Next = std::pair<LinkPtr, unsigned char /*end*/>; |