1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #33754 from stoofin/stoofin-patch-1

Fixed bug caused by a copy/paste error in Face3::get_closest_point_to
This commit is contained in:
Rémi Verschelde
2019-11-20 09:00:35 +01:00
committed by GitHub

View File

@@ -393,7 +393,7 @@ Vector3 Face3::get_closest_point_to(const Vector3 &p_point) const {
s = CLAMP(numer / denom, 0.f, 1.f);
t = 1 - s;
} else {
s = CLAMP(-e / c, 0.f, 1.f);
s = CLAMP(-d / a, 0.f, 1.f);
t = 0.f;
}
} else {