summaryrefslogtreecommitdiff
path: root/game/terrain2.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-02 20:38:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-02 20:38:10 +0000
commit8a5d36623e4fa261aea16731954c9987dcbb1ef1 (patch)
tree1b00a22c77affc45babb1401e9ffe73d07347224 /game/terrain2.h
parentGeneric N-dimensional terrain triangle (diff)
downloadilt-8a5d36623e4fa261aea16731954c9987dcbb1ef1.tar.bz2
ilt-8a5d36623e4fa261aea16731954c9987dcbb1ef1.tar.xz
ilt-8a5d36623e4fa261aea16731954c9987dcbb1ef1.zip
Terrain mesh method for getting the height/position at a point on the surface
Diffstat (limited to 'game/terrain2.h')
-rw-r--r--game/terrain2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/terrain2.h b/game/terrain2.h
index c2c3d19..f1d288e 100644
--- a/game/terrain2.h
+++ b/game/terrain2.h
@@ -58,6 +58,8 @@ public:
[[nodiscard]] FaceHandle findPoint(glm::vec2) const;
[[nodiscard]] FaceHandle findPoint(glm::vec2, FaceHandle start) const;
+ [[nodiscard]] glm::vec3 positionAt(const PointFace &) const;
+
void walk(const PointFace & from, const glm::vec2 to, const std::function<void(FaceHandle)> & op) const;
void walkUntil(const PointFace & from, const glm::vec2 to, const std::function<bool(FaceHandle)> & op) const;