Synced defs.hpp with godot's typedefs.h

(cherry picked from commit d634a5f8c4)
This commit is contained in:
Tom
2025-04-03 00:45:56 +01:00
committed by David Snopek
parent bdeb1987f6
commit b139e2fb76
10 changed files with 362 additions and 211 deletions

View File

@@ -60,7 +60,7 @@ Vector3 Plane::get_any_perpendicular_normal() const {
static const Vector3 p2 = Vector3(0, 1, 0);
Vector3 p;
if (ABS(normal.dot(p1)) > 0.99f) { // if too similar to p1
if (Math::abs(normal.dot(p1)) > 0.99f) { // if too similar to p1
p = p2; // use p2
} else {
p = p1; // use p1