summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-02-14 02:04:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-02-14 02:04:44 +0000
commit6535a9c7f4e8fec978c079d45c0349a004b73241 (patch)
treee5e1a9fbae0cf1d0df90af4fbf65573f36c42eca
parentInclude face handle in intersectRay result (diff)
downloadilt-6535a9c7f4e8fec978c079d45c0349a004b73241.tar.bz2
ilt-6535a9c7f4e8fec978c079d45c0349a004b73241.tar.xz
ilt-6535a9c7f4e8fec978c079d45c0349a004b73241.zip
Fix getting cartesian coords from triangle baripos
-rw-r--r--game/geoData.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/geoData.h b/game/geoData.h
index f599552..6c6ae26 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -66,7 +66,7 @@ public:
{
const auto & t {*this};
return t[0] + GlobalPosition<Dim>(RelativePosition<Dim>(t[1] - t[0]) * bari.x)
- + GlobalPosition<Dim>(RelativePosition<Dim>(t[2] - t[1]) * bari.y);
+ + GlobalPosition<Dim>(RelativePosition<Dim>(t[2] - t[0]) * bari.y);
}
};