You've already forked godot
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:
@@ -393,7 +393,7 @@ Vector3 Face3::get_closest_point_to(const Vector3 &p_point) const {
|
|||||||
s = CLAMP(numer / denom, 0.f, 1.f);
|
s = CLAMP(numer / denom, 0.f, 1.f);
|
||||||
t = 1 - s;
|
t = 1 - s;
|
||||||
} else {
|
} else {
|
||||||
s = CLAMP(-e / c, 0.f, 1.f);
|
s = CLAMP(-d / a, 0.f, 1.f);
|
||||||
t = 0.f;
|
t = 0.f;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user